ON *:TEXT:!whois*:#: {
if ($nick isop $chan) || ($nick ishop $chan) {
if ($2 == on) { set $+(%,whoisi.,$chan) ON | msg $chan 4Whois7 on join is now:4 ON }
if ($2 == off) { set $+(%,whoisi.,$chan) OFF | msg $chan 4Whois7 on join is now:4 OFF }
if ($2 == $null) { msg $chan 4Whois7 on join is currently4 $eval($+(%,whoisi.,$chan),2) $+ }
}
else { notice $nick 4Only ops or halfops can do that! }
}
ON *:JOIN:#: {
set %whois $chan
.enable #whois
/whois $nick
}
raw 319:*: {
if ($($+(%,whoisi.,$chan),2) == ON) { msg %whois 7Rsn:4 $2 7is on:4 $3- | halt }
raw *:*:{halt}
}