alias mop {
if (# !ischan) echo -ac info * Must be typed from a channel window.
elseif ($nick(#,0) == 1) echo -ac info * You're alone on $+(#,.)
elseif ($me !isop #) echo -ac info * You're not opped on $+(#,.)
elseif ($nick(#,0,o) == $nick(#,0)) echo -ac info * Everyone is already opped on $+(#,.)
else {
var %i = 1,%m
while ($nick(#,%i)) {
var %n = $v1
if ((!$istok($1-,%n,32)) && (%n !isop #)) {
var %m = %m %n
if ($numtok(%m,32) == $modespl) {
.timer 1 0 mode # $+(+,$str(o,$v1)) %m
var %m
}
}
inc %i
}
if (%m) mode # $+(+,$str(o,$numtok($v1,32))) %m
}
}
alias mop {
if (# !ischan) echo -ac info * Must be typed from a channel window.
elseif ($nick(#,0) == 1) echo -ac info * You're alone on $+(#,.)
elseif ($me !isop #) echo -ac info * You're not opped on $+(#,.)
elseif ($nick(#,0,o) == $nick(#,0)) echo -ac info * Everyone is already opped on $+(#,.)
else {
var %i = 1,%m
while ($nick(#,%i)) {
var %n = $v1
if ((!$istok($1-,%n,32)) && (%n !isop #)) {
var %m = %m %n
if ($numtok(%m,32) == $modespl) {
.timer 1 0 mode # $+(+,$str(o,$v1)) %m
var %m
}
}
inc %i
}
if (%m) mode # $+(+,$str(o,$numtok($v1,32))) %m
}
}