Re: Ban enforcer with kick limit
Wims
Yesterday at 02:14 PM
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 ?