This code is a simple snippet designed to give you information you might want to know about a person when they PM you. Right now it has a basic setup and will return in the following format:
Query from IllogicTC. Full address: IllogicTC!~IllogicTC@Swift-617BE073.random.stuff.net. Common channels: #msl.
(Includes nickname, full address [$address 5], and common channels.)
The layout is straightforward, and easy to change for your own purposes should you require more (or less) information.
on *:OPEN:?:*: {
var %x 0
var %y $comchan($nick,0)
while (%x < %y) {
inc %x
var %a %a $+ $chr(32) $+ $comchan($nick,%x)
}
echo $nick Query from $nick $+ . Full address: $address($nick,5) $+ . Common channels: %a $+ .
}
Jethro_: Yeah good point, I never thought to tokenize :(
jcrosb94: Where? I see it nowhere. I do know you can /whois on Query, but that involves having a whole whois list down, and there is no changing what that whois says. With this, it gives some basic info, and is customizable for anyone's own purposes.