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.

Retrieving users ip or domain name only knowing their nick.

Old posts that have not been replied to for several years.
Locked
F
FalconX

Retrieving users ip or domain name only knowing their nick.

Post by FalconX »

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?
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

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
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You can get the information if the user is on the channel, but you would have to use raw binds if not.
F
FalconX

Post by FalconX »

You can get the information if the user is on the channel, but you would have to use raw binds if not.

Care to elaborate? saying you can do it without saying how is kind of fustrating.

The user is on the channel, or did you mean with a module you could only get the information if the user is on the channel without using raw binds?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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).

To find these commands, read tcl-commnads.doc
d
darko``
Op
Posts: 121
Joined: Sun Sep 08, 2002 5:33 pm
Location: Malta

Post by darko`` »

Code: Select all

bind raw - "311" whoiz:311
bind dcc - whoiz whoiz:whoiz

proc whoiz:311 {from mask text} {
	putlog "$text"
}

proc whoiz:whoiz {handle idx args} {
	putquick "WHOIS $args"
}

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.
F
FalconX

Post by FalconX »

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.
d
darko``
Op
Posts: 121
Joined: Sun Sep 08, 2002 5:33 pm
Location: Malta

Post by darko`` »

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.
Locked