This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

ip2nick

Old posts that have not been replied to for several years.
Locked
M
MeJseL
Halfop
Posts: 61
Joined: Tue Nov 18, 2003 7:30 am
Location: Gothenburg , sweden

ip2nick

Post by MeJseL »

anyone have like: !ip2nick <ip>
and the bot writes out all the nicks on the network with that ip..
yeah!
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: ip2nick - WHY?

Post by user »

I don't see why you would want your bot to do that.

Code: Select all

bind pub - !ip2nick ip2nick
proc ip2nick {n u h c a} {
  putserv "PRIVMSG $c :$n: /quote WHO $a"
}
:mrgreen:
If you REALLY want it, make a couple of raw binds and parse the who-replies. It'll be a total mess though, as you'll need to have some sort of queue for when people issue a new request before the previous one is completed and to avoid flooding etc. Too much work for too little IMO.
352
RPL_WHOREPLY
"<channel> <user> <host> <server> <nick> <H|G>[*][@|+] :<hopcount> <real name>"
315
RPL_ENDOFWHO
"<name> :End of /WHO list"
- The RPL_WHOREPLY and RPL_ENDOFWHO pair are used to answer a WHO message. The RPL_WHOREPLY is only sent if there is an appropriate match to the WHO query. If there is a list of parameters supplied with a WHO message, a RPL_ENDOFWHO must be sent after processing each list item with <name> being the item.
Have you ever read "The Manual"?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

You could try script named !dns, it have similar functions..
Locked