var %n = 1 while ($comchan($nick,%n)) { if ($me isop $v1) { kick $v2 $nick <your kick reason goes here> } inc %n }