ON !*:JOIN:#: {
.timer[CHECK_ $+ $nick $+ _STATUS] 1 3 check_op_status $nick $chan
}
alias check_op_status {
if (!$1) { return }
if ($me !ison $2) { return }
if ($1 !ison $2) { return }
if ($1 !isop $2) { return }
set -e %check_chan $2
set -e %check_nick $1
.msg NickServ info $1
}
ON ^*:NOTICE:*:?: {
if ($nick == NickServ) && (%check_chan) && (%check_nick) {
haltdef
if (*isn't registered.* iswm $1-) && (%check_nick) && (%check_chan) {
if ($me !ison %check_chan) { unset %check_* | return }
if ($me !isop %check_chan) { unset %check_* | return }
if (%check_nick !ison %check_chan) { unset %check_* | return }
var %a = $address(%check_nick,2)
mode %check_chan $iif(!%a,+b %check_nick,+bb %check_nick %a)
kick %check_chan %check_nick [BANNED]: You are NOT allowed to stay into this room! - Your nickname is NOT registered!
unset %check_*
}
halt
}
}