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