Anope IRC Services

Anope Development => Modules => Topic started by: Ramy on April 25, 2009, 03:27:10 PM

Title: about : hs_nethost
Post by: Ramy on April 25, 2009, 03:27:10 PM
i tried this module : http://modules.anope.org/viewmod.php?id=152
hs_nethost
and i put i the config : NetworkHost "$nick$.users.$network$"
can i put random no. inplace of $nick$ ?
like it become @id28472983.users.network
snoop tried help yestrday but it didn't work
can any one help ?
Title: Re: about : hs_nethost
Post by: Jan Milants on April 28, 2009, 04:44:06 PM
why all the bold ???

the module currently only supports $nick$ and $network$... and while the module can be changed to allow more keywords, I don't really see the point of using a random number...
Title: Re: about : hs_nethost
Post by: ShawnSmith on April 29, 2009, 09:13:26 PM
Might make more sense to use an incremental number, start at 0 or 1 and then just continue onwards.
Title: Re: about : hs_nethost
Post by: Ramy on May 01, 2009, 03:21:50 PM
the proplem is
if someone his nick is " Sam^6 "
as example
his gate will be
@Sam.6

and if someone his nick is Sam_6
his gate will be also
@Sam.6

my users wanted a fix
and the random no. is the only thing i thinked about

can u help ?
Title: Re: about : hs_nethost
Post by: zEkE on May 03, 2009, 11:48:53 PM
Maybe a truncated MD5 of the nickname, or something similar?
Title: Re: about : hs_nethost
Post by: ShawnSmith on May 04, 2009, 06:18:08 AM
Maybe a truncated MD5 of the nickname, or something similar?
That has the possibility (though very low) of two people getting the exact same host.
Title: Re: about : hs_nethost
Post by: Ramy on May 04, 2009, 07:14:07 PM
Maybe a truncated MD5 of the nickname, or something similar?

how to do that?

there's no other way ?
even the random no ?
Title: Re: about : hs_nethost
Post by: Jan Milants on May 04, 2009, 09:40:50 PM
Both nicks will result in the same vhost because certain characters are valid for nicknames, but not for hosts... originally this module didn't even set vhosts for that kinda nicknames..

Both an MD5 and a random number leave the possibility of two people getting the same host..
As for an incremental number, the counter wouldn't survive an anope restart and a DB for a simply module like this is a bit overkill imho...

As for how to do it, it will require the module code to be modified...
Title: Re: about : hs_nethost
Post by: Ramy on May 05, 2009, 11:07:53 AM
Both nicks will result in the same vhost because certain characters are valid for nicknames, but not for hosts... originally this module didn't even set vhosts for that kinda nicknames..

Both an MD5 and a random number leave the possibility of two people getting the same host..
As for an incremental number, the counter wouldn't survive an anope restart and a DB for a simply module like this is a bit overkill imho...

As for how to do it, it will require the module code to be modified...

if it's id$random.nick it will hardly get 2 same host
and what about $random1.$random2.$random3 ( this is too hard )

what do u think ?
i wish it work any way of them

my users keep ask me day and night for fixing it
if u can please make it work , plz do it :)

thank you for help
Title: Re: about : hs_nethost
Post by: Eric Davis on May 07, 2009, 08:34:28 PM
The hs_nethost module isn't a bad module and would be awesome if it worked 100% of the time though (despite the easy ability to abuse it).

Also, why focus with automatic virtual hosts? As mentioned in my first statement, that just calls for abuse. If a user is banned from a channel all (s)he has to do is register a new nick and viola!

If you're wanting that to cloak users masks from showing their IP/host, you can always include a cloaking system in your IRCD.
Title: Re: about : hs_nethost
Post by: Charles Kingsley on May 07, 2009, 08:42:07 PM
It's a poorly coded module which works only 50% of the time anyways.

Because you're god's gift to module authoring :)

 ???  ::)
Title: Re: about : hs_nethost
Post by: Amanda Folson on May 07, 2009, 08:44:03 PM
What? I gave no such gift to the world.
Title: Re: about : hs_nethost
Post by: Eric Davis on May 07, 2009, 08:44:19 PM
Because you're god's gift to module authoring :)

 ???  ::)

The post was modified. Also, no, I don't need to be a "gift" to be able to tell if a module does or does not work. :P Criticism is what makes things better (yes, I understand I could have been nicer in my reply, which is why I edited it).
Title: Re: about : hs_nethost
Post by: Charles Kingsley on May 07, 2009, 08:45:17 PM
You commented DIRECTLY on the coding.
Title: Re: about : hs_nethost
Post by: Eric Davis on May 07, 2009, 08:47:09 PM
You don't think the way it was coded has anything to do with whether it works or not?
Title: Re: about : hs_nethost
Post by: Charles Kingsley on May 07, 2009, 08:48:46 PM
Almost 500 downloads and a rating of 3.5/5 is more useful than your remark about something being poorly coded; can you do better? If so, go for it.
Title: Re: about : hs_nethost
Post by: Eric Davis on May 07, 2009, 08:50:03 PM
No, I probably could not do better but that has nothing to do with it. If you went to a restaurant and a cook served you poor tasting food, do you have the right to say it doesn't taste good when you yourself probably couldn't do better?
Title: Re: about : hs_nethost
Post by: Charles Kingsley on May 07, 2009, 08:50:39 PM
I pay for food in the restaurant so your argument is moot.
Title: Re: about : hs_nethost
Post by: mooncup on May 07, 2009, 08:52:52 PM
No, I probably could not do better but that has nothing to do with it. If you went to a restaurant and a cook served you poor tasting food, do you have the right to say it doesn't taste good when you yourself probably couldn't do better?

Shouldn't you be at school?
Title: Re: about : hs_nethost
Post by: Eric Davis on May 07, 2009, 08:56:31 PM
I pay for food in the restaurant so your argument is moot.

The module still doesn't work 100% of the time. :P


Shouldn't you be at school?

I don't know how long kids in the UK stay at school until or how poor your knowledge of timezones is, but school is out. :)
Title: Re: about : hs_nethost
Post by: Amanda Folson on May 07, 2009, 08:57:48 PM
care-meter: [..............]   0%

Moving on...
Title: Re: about : hs_nethost
Post by: Eric Davis on May 07, 2009, 08:59:35 PM
Well, others have a higher care-meter than you.
Title: Re: about : hs_nethost
Post by: Amanda Folson on May 07, 2009, 09:01:00 PM
(That was a hint to drop it)

If anyone has anything useful to add to the main discussion feel free.
Title: Re: about : hs_nethost
Post by: mooncup on May 07, 2009, 09:08:54 PM
The module still doesn't work 100% of the time. :P

What do you mean? As in it doesn't always assign the vhost?
Title: Re: about : hs_nethost
Post by: mooncup on May 07, 2009, 09:09:55 PM
Also re: OP, would it not be easy for someone with a bit of C experience to add a new variable called $random for him?
Title: Re: about : hs_nethost
Post by: Ramy on May 08, 2009, 02:35:34 AM
guys , u have time to fight with each other ? and don't have time to create this variable ?
also who said it's bad module , why u care  ?
i like it and i loved it
i didn't ask for ur opinion , i ask for help :)
don't waste our time
Title: Re: about : hs_nethost
Post by: Amanda Folson on May 08, 2009, 02:38:38 AM
Well, you're not helping the situation any.

If someone knows the answer they will speak up. If not, you may want to consider alternatives. Why can't you use IRCd cloaking?
Title: Re: about : hs_nethost
Post by: Ramy on May 08, 2009, 03:03:05 AM
well
my users get them ip chaned
and they want them id never change :)