alias voiceall { var %x = 1 while (%x <= $nick($1,0)) { if ($nick($1,%x) !isvo $1) mode $chan +v $nick($1,%x) inc %x } } On @*:Join:#: { voiceall $chan }