The better method is:

Code:
menu nicklist {
  Voice Selected: massv $chan $snicks
}

alias massv {
  if (!$2) { echo -a ERROR: No nicks selected | return }
  var %in = $replace($2,$chr(44),$chr(32)), %max = $iif($modespl,$v1,4)
  var %c = 1, %t = $numtok(%in,32)
  while (%c <= %t) {
    mode $1 + $+ $str(v,%max) $gettok(%in,%c - $calc(%c + %max),32)
    inc %c %max
  }
}


I'm sure there's an faster way to do that, but that's the general idea that I just quickly put together.

To do it with ops, do the same thing, but using +o instead of +v. Note that this is set up to automatically voice the maximum number per line as the server allows. If for some reason the server never sends the RAW that tells the max, it will default to 4. I'm not sure if that's ever the case, so I threw it in as a safety.

Last edited by Riamus2; 23/03/08 12:07 AM.

Invision Support
#Invision on irc.irchighway.net