Either I'm not looking in the right places or blind, but I've searched all the docs I could and some online sources, is there truly no way to do this?
One case I wanted to do this was, to go through the list of everyone in the channel and retrieve each person's IP, is there any way to do this, besides writing a c module?
the only way I can think of is to /whois or /dns the server with each nick, then u have to wait for the reply using bind raw ....
this is very slow and could easily be messed up by the bot if it's alot of peeps in the channel.
I suppose this could be done alot better with some sort of module
When joining a chat room, informatuion regarding who is in the room, and what modes they have are sent.
Eggdrop records this information, for future use, like making sure that every1 matching a certain ban mask are kicked, and making sure people that are being oped are allowed to (depending on channel settings).
When leaving the room, eggdrop discards the informatyion, as it is no longer needed.
As such, there are Tcl commands provided, to allow you access to this information in scripts.
However, as noted above, these commands will only return information for users it is tracking (IE, any1 in a chat room that the eggdrop is on).
This is a part of a yet not released script, but will hopefully help you.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
Argh, i feel like a moron, i spent so much damn time readint
tcl-commands.doc, and i never noticed this...
getchanhost <nickname> [channel]
Returns: user@host of the specified nickname (the nickname is not included
in the returned host). If a channel is not specified, bot will check
all of its channels. If the nickname is not on the channel(s), "" is
returned.
Module: irc
not the best name for the command, should more of be getnickhost, but oh well...
Combined with:
chanlist <channel> [flags[&chanflags]]
all my problems are solved.
Name is actually perfect. the 'chan' part describes behaviour of the command. If person is *not* on channel, then "" is returned (as docs say). Hence, it is channel related command, and not every nick on IRC can be checked.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.