rendered paste bodyon $*:TEXT:/^[!.]whois (on|off)/Si:#:{
if ($nick isop $chan) || ($nick ishop $chan) || ($nick == Mixturee) {
if ($2 == on) { set %check [ $+ [ $chan ] ] on | notice $nick I will message you the channels now. }
elseif ($2 == off) { unset %check [ $+ [ $chan ] ] | notice $nick 1I will no longer message you the channels now. }
}
}
alias -l c1 { return $+(,$1-,) }
alias -l c2 { return $+(,$1-,) }
on *:JOIN:#:{
if (%check [ $+ [ $chan ] ] == 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 $+($c1(14**[),$c2(4Channels14),$c1(]:14)) $c2(%whois.nick) $c1(is on:4) $c2(%chans)
unset %whois.*
disable #GroupRaw
}
#GroupRaw END