raw *:*:{
if ($numeric == 307) { haltdef | did -o whois 3 5 $snick($active,1) $3- }
elseif ($numeric == 311) { haltdef | did -o whois 3 1 Host: $3 $+ @ $+ $4 }
elseif ($numeric == 312) { haltdef | did -o whois 3 3 Server: $3 | did -o whois 3 4 Location: $4 $5 }
elseif ($numeric == 313) { haltdef | did -o whois 3 6 $snick($active,1) $3- }
elseif ($numeric == 317) { haltdef }
elseif ($numeric == 318) {
haltdef
if ( %whois.channels != $+($cid,$2) ) {
did -o whois 3 2 $snick($active,1) most likely has the channels s/he is on hidden.
unset %channels
}
}
elseif ($numeric == 319) { haltdef | did -o whois 3 2 Channels: $3- | set %whois.channels $cid $+ $2 }
else { halt }
}