egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eggdrop and IRC Name

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Weirdo
Master


Joined: 27 Apr 2002
Posts: 265
Location: Manchester, England

PostPosted: Wed Nov 16, 2005 7:16 am    Post subject: Eggdrop and IRC Name Reply with quote

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
View user's profile Send private message
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Wed Nov 16, 2005 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Weirdo
Master


Joined: 27 Apr 2002
Posts: 265
Location: Manchester, England

PostPosted: Wed Nov 16, 2005 4:46 pm    Post subject: Reply with quote

Thanks, ill give it a go Smile
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Nov 16, 2005 5:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber