alias mvoice {
var %xTemp $1- , %nicks = %xTemp, %newnicks, %x = 0, %numnicks = $numtok(%xTemp,32), %inc = $modespl, %max = %numnicks, %nickstring
while (%x < $numtok(%xTemp,32)) {
inc %x
var %nick = $gettok(%xTemp,%x,32)
if (%nick ison #) {
if (%x != 1) %nickstring = %nickstring $+ $
%nickstring = %nickstring $+ %nick
}
}
%nickstring = $replace(%nickstring,$,$chr(32))
%x = 1
while (%x < %max) {
%end = $calc(%x + %inc)
if (%end > %max) %end = %max
%currentnicks = $gettok(%nickstring, %x - %end, 32)
%vs = + $+ $str(v,$numtok(%currentnicks,32))
mode # %vs %currentnicks
inc %x %inc
inc %x
}
}