on @*:join:#channel2:{ var %x = 0 while (%x < $comchan($nick,0)) { inc %x 1 if ($comchan($nick,%x) == #channel1) { var %tmp.1 = 1 } } if (!%tmp.1) { inc %kick.counter 1 kick $chan $nick Some Reason ... ( $+ %kick.counter $+ ) } }