I think this code here would work ALOT better:
on @*:TEXT:!*:#: { if ($istok(!kick !k,$1,32)) && ($nick($chan,$nick,oh)) && ($2) { var %t = $numtok($2-,32) while (%t) { if ($gettok($2-,%t,32) != $me) && ($gettok($2-,%t,32) ison $chan) { kick $chan $v1 } dec %t } } }
^Untested.