Code:
alias massmode {
  if ($1 == +v) {
    var %x = r,%w = v
    goto start
  }
  else {
    var %x = $remove($1,-,+),%w = %x
    goto start
  }
  :start
  if ($nick($active,0,%x) >= 20) { echo -a Too many users meet the criteria | halt }
  var %i = 1, %n 
  while (%i <= $nick($active,0,%x)) { 
    if ($nick($active,%i,%x) != $me) { 
      var %n = %n $nick($active,%i,%x)
    }
    inc %i
  } 
  mode $chan $left($1,1) $+ $str(%w,%i) %n
  if ($left($1,1) == -) {
    if ($nick($active,0,%x) != 0)  {
      massmode $1
    }
  }
  if ($left($1,1) == +) {
    if ($nick($active,0,%x) != %i)  {
      massmode $1
    }
  }
}

When all the modes cant be set at once, insted of repeating the command like I need it to,I recieve an "unknown command: massmode". Any ideas? Btw: I am a bit tired, so I'm sure it could have been formatted better using && insted of 2 lines, but I didnt realize that untill now. blush

Austin

Last edited by HAMM3R; 24/09/05 12:07 AM.

-- HAMM3R (aka: alhammer)
http://www.HAMM3R.net