Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2   Go Down

Author Topic: about : hs_nethost  (Read 14427 times)

0 Members and 1 Guest are viewing this topic.

Ramy

  • Anope User
  • Offline Offline
  • Posts: 6
about : hs_nethost
« 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 ?
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: about : hs_nethost
« Reply #1 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...
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

ShawnSmith

  • Anope User
  • Offline Offline
  • Posts: 46
Re: about : hs_nethost
« Reply #2 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.
Logged

Ramy

  • Anope User
  • Offline Offline
  • Posts: 6
Re: about : hs_nethost
« Reply #3 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 ?
Logged

zEkE

  • Anope User
  • Offline Offline
  • Posts: 34
Re: about : hs_nethost
« Reply #4 on: May 03, 2009, 11:48:53 PM »

Maybe a truncated MD5 of the nickname, or something similar?
Logged

ShawnSmith

  • Anope User
  • Offline Offline
  • Posts: 46
Re: about : hs_nethost
« Reply #5 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.
Logged

Ramy

  • Anope User
  • Offline Offline
  • Posts: 6
Re: about : hs_nethost
« Reply #6 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 ?
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: about : hs_nethost
« Reply #7 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...
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Ramy

  • Anope User
  • Offline Offline
  • Posts: 6
Re: about : hs_nethost
« Reply #8 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
Logged

Eric Davis

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: about : hs_nethost
« Reply #9 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.
« Last Edit: May 07, 2009, 08:43:29 PM by Eric Davis »
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: about : hs_nethost
« Reply #10 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 :)

 ???  ::)
Logged

Amanda Folson

  • Anope User
  • Offline Offline
  • Posts: 164
  • O_O
    • ZomgIRC
Re: about : hs_nethost
« Reply #11 on: May 07, 2009, 08:44:03 PM »

What? I gave no such gift to the world.
Logged

Eric Davis

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: about : hs_nethost
« Reply #12 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).
« Last Edit: May 07, 2009, 08:46:21 PM by Eric Davis »
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: about : hs_nethost
« Reply #13 on: May 07, 2009, 08:45:17 PM »

You commented DIRECTLY on the coding.
« Last Edit: May 07, 2009, 08:47:09 PM by Charles Kingsley »
Logged

Eric Davis

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: about : hs_nethost
« Reply #14 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?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: about : hs_nethost
« Reply #15 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.
Logged

Eric Davis

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: about : hs_nethost
« Reply #16 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?
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: about : hs_nethost
« Reply #17 on: May 07, 2009, 08:50:39 PM »

I pay for food in the restaurant so your argument is moot.
Logged

mooncup

  • Contributor
  • *
  • Offline Offline
  • Posts: 65
Re: about : hs_nethost
« Reply #18 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?
Logged

Eric Davis

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: about : hs_nethost
« Reply #19 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. :)
Logged

Amanda Folson

  • Anope User
  • Offline Offline
  • Posts: 164
  • O_O
    • ZomgIRC
Re: about : hs_nethost
« Reply #20 on: May 07, 2009, 08:57:48 PM »

care-meter: [..............]   0%

Moving on...
Logged

Eric Davis

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: about : hs_nethost
« Reply #21 on: May 07, 2009, 08:59:35 PM »

Well, others have a higher care-meter than you.
Logged

Amanda Folson

  • Anope User
  • Offline Offline
  • Posts: 164
  • O_O
    • ZomgIRC
Re: about : hs_nethost
« Reply #22 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.
Logged

mooncup

  • Contributor
  • *
  • Offline Offline
  • Posts: 65
Re: about : hs_nethost
« Reply #23 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?
Logged

mooncup

  • Contributor
  • *
  • Offline Offline
  • Posts: 65
Re: about : hs_nethost
« Reply #24 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?
Logged
Pages: [1] 2   Go Up