rendered paste bodyON *:TEXT:/^[!@.](Global|AMSG) /Si:#:{
if ($nick ison #ZetaAdmins || $nick isop #ZetaSecure) {
tokenize 32 $2-
var %max = $iif(%maxtarg. [ $+ [ $cid ] ],$ifmatch,10)
var %this = 0, %total = $chan(0), %msg = $+($chr(3),04,$chr(2),[AMSG-,$nick,],$chr(3),$chr(2)) $1-
while (%this < %total) {
inc %this 1
if ($ialchan(*ZetaScript,$chan(%this),0) > 1) && ($ialchan(*ZetaScript,$chan(%this),1) != $address($me,5)) { continue }
var %chanlist = $+(%chanlist,$chr(44),$chan(%this))
if ($count(%chanlist,$chr(44)) == %max) {
raw PRIVMSG $right(%chanlist,-1) : $+ $1-
unset %chanlist
}
}
raw PRIVMSG $right(%chanlist,-1) : $+ $1-
)
}
}
Raw 005:*:{
if ($wildtok($1-,MAXTARGETS=*,1,32)) { set -e %maxtarg. [ $+ [ $cid ] ] $remove($wildtok($1-,MAXTARGETS=*,1,32),MAXTARGETS=) }
elseif ($wildtok($1-,NETWORK=*,1,32)) { set -e %maxtarg. [ $+ [ $network ] ] %maxtarg. [ $+ [ $cid ] ] }
else { unset %maxtarg. [ $+ [ $cid ] ] }
}