Code:
alias mdeop { 
  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) == 1) echo -ac info * You're the only op on $+(#,.)
  else {
    [color:green]var %i = 1,%m[/color]
    while ($nick(#,%i,o)) {
      [color:red]var %n = $v1[/color]
      if ((%n != $me) && (!$istok($1-,%n,32))) {
        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 mdeop {
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) == 1) echo -ac info * You're the only op on $+(#,.)
else {
var %i = 1,%m
while ($nick(#,%i,o)) {
var %n = $v1
if ((%n != $me) && (!$istok($1-,%n,32))) {
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
}
}

Last edited by mIRCManiac; 04/04/06 12:20 PM.