On @*:TEXT:.massop:#: if ( $nick == YOURNICK ) massop $chan
alias massop {
var %m = $nick($1,0,a,o), %nicks
while %m {
%nicks = %nicks $nick($1,%m,a,o)
if ( $numtok(%nicks,32) == $modespl ) {
mode $1 $str(+o,$modespl) %nicks
%nicks = ""
}
dec %m
}
if ( %nicks ) mode $1 $str(+o,$modespl) %nicks
}