Hi mitch
gonna give you a code Jethro_ did for me based on this which i wanted a long time ago. its a compex way of doing it but it will help you learn a bit more on coding styles based on what you are doing :)
place it in a clean blank remotes window on the bot.
then to use...
in any channel ... just simply type whoid
and the bot shall deliver (note my command is slightly different and shows in channel not pm)
idshow Cheiron -irc.sassirc.com- *** Titan_Bot (main@xxx.xxx.xxx.xxx) did a /whois on you. Cheiron's whois ID: ~Looking@ServicesAdmin.SassIRC.com and Real Name is: Why
raw 311:*: {
.msg #YourChannel $2 $+ 's ID is: $+($3,@,$4) and Real Name is: $6- | halt
}
on *:TEXT:*:#: {
if ($nick isop $chan) && ($regex($1-,/(^|\s)(whoid?d?s?\s\S+)/i)) {
tokenize 32 $regml(2) | whois $2
}
}
note.. this one is an ops only rank for use. to edit for your purpose
change isop to ison and .msg #yourchannel to .msg $nick
hope this will help with your coding and learning :)