on *:snotice:*did a /whois on you*:{
var %nick = $2
set -u6 %ghlist $addtok(%ghlist,%nick,44)
.userhost %nick
}
raw 302:*:{
; REGEX: (nick)(*=+-)(ident)@(host)
if ($regex(gh,$2-,/([^*=+]+)([*=+]+)([^*=+]+)@([^*=+]+)/)) {
if (!$istok(%ghlist,$regml(gh,1),44)) return
set -u8 %ghlist $remtok(%ghlist,$regml(gh,1),1,44)
if (* isin $regml(gh,2)) return
inc -u[color:red]10[/color] $+(%,whois.,$regml(gh,4))
if ($($+(%,whois.,$regml(gh,4)),2) > 4) { kill $regml(gh,1) Do not /whois me that many times }
echo 3 -a $regml(gh,1) ( $+ $regml(gh,3) $+ @ $+ $regml(gh,4) $+ ) has /whois'd you $($+(%,whois.,$regml(gh,4)),2) times
}
halt
}