| View previous topic :: View next topic |
| Author |
Message |
Weirdo Master
Joined: 27 Apr 2002 Posts: 265 Location: Manchester, England
|
Posted: Wed Nov 16, 2005 7:16 am Post subject: Eggdrop and IRC Name |
|
|
Quick Question.
Is there a way for eggdrop to get the irc name (Real Name) of a user as shown in their info? Basically i have a user who keep opping a bot that he owns. It happens to be a protection bot, which shares his hostname, and nickname. The only difference between them is the IRC Name.
If i ask nickserv i can get this:
[11:08:55] -> -nickserv- info Natsuki-Chan
[11:08:58] Private: -NickServ- Natsuki-Chan is Natsuki - Owned by Weirdo
Where it gives <nick> is <irc name> on the first line. |
|
| Back to top |
|
 |
KrzychuG Master

Joined: 16 Aug 2003 Posts: 306 Location: Torun, Poland
|
Posted: Wed Nov 16, 2005 4:39 pm Post subject: |
|
|
I'm not sure if it will be the same on your network, but on IRCnet and probably all other similiar ircds you can get irc name by doing WHOIS on that user. You'll have something like this as an answer to 'WHOIS B':
":open.pl.ircnet.net 311 A B arcain flirt.wirefame.net * :Grabowski Krzysztof"
Last argument, after ':' is an irc name. All you have to do is to WHOIS that user and bind raw on 311 reply, then parse receiver data properly.
| Code: |
bind RAW - 311 whois:reply
proc whois:reply { from name arg } {
set realname [string range [lrange $arg 5 end] 1 end]
[...your code here...]
}
|
_________________ Que? |
|
| Back to top |
|
 |
Weirdo Master
Joined: 27 Apr 2002 Posts: 265 Location: Manchester, England
|
Posted: Wed Nov 16, 2005 4:46 pm Post subject: |
|
|
Thanks, ill give it a go  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Nov 16, 2005 5:23 pm Post subject: |
|
|
Or you can get the name from nickserv's reply, the name would be [join [lrange [split $text] 2 end]] _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|