on me:*:JOIN:[color:red]#CHANNEL[/color]: $+(.timercheck,.,$cid,.,$chan) 0 [color:red]20[/color] if ( $me isop $chan ) wscan $chan
alias wscan {
if ( !%scan.chan ) set %scan.chan $1
if ( !%scan.nick ) set %scan.nick 0
inc %scan.nick
if ( $nick(%scan.chan,%scan.nick) ) {
.enable #scanr
whois $v1
}
else unset %scan*
}
#scanr off
raw 301:*: halt
raw 311:*: halt
raw 313:*: halt
raw 312:*: halt
raw 330:*: halt
raw 319:*: {
if ($me isop %scan.chan) && ([color:red]#BADCHANNEL[/color] isin $3-) { ban -k %scan.chan $2 2 Bad Channel Detected }
halt
}
raw 318:*: .disable #scanr | wscan | halt
#scanr end