Well in fact I checked the code again and it is unsetting %kick after the /break, meaning that the if (%kick) part after the while loop should never get executed.

Edit: Most likely you described the problem incorrectly, what is triggering the kick is that last condition inside the while loop:
if ($numtok(%kick,44) == 4) { kick $chan %kick «-Banned-» | unset %kick }
and not the if (%kick) stuff outside, after the while loop

The overall logic of your event is unclear anyway, what is it that you want to do with nick affected by a ban ?

Last edited by Wims; 01/12/25 06:51 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel