on *:TEXT:!whois*:#: {
if ($nick isop $chan || $nick ishop $chan || $nick == Mixturee) {
if ($2 == on) {
set %check on
notice $nick 14I will now whois users on join.
halt
}
elseif ($2 == off) {
unset %check
notice $nick 14I will no longer whois users on join.
halt
}
elseif ($2 != on && $2 != off) {
notice $nick 1Please use !whois on or !whois off
}
}
}
on *:JOIN:#:{
if (%check == on) {
enable #GroupRaw
whois $nick
set %whois.nick $nick
set %whois.dest $chan
}
else { halt }
}
#GroupRaw off
raw 319:*:{
if (!%whois.dest) { halt }
var %chans $3-
msg %whois.dest 7[14Channels7] %whois.nick 14is on:7 $3-
unset %whois.*
disable #GroupRaw
}
#GroupRaw END