Posted By: tekano

## Empty the ban list - 06/03/07 12:10 AM

I was just playing around a bit with this here:

and came to the conclusion that I must be missing something here. the while is always correct until %testbans goes under 30, wich is when the script should stop. There are like 260 bans in the ban list.

I must be forgetting something here...

Code:

on *:TEXT:!empty:#spelletjes: { if (($nick isop #) || ($nick ishop #)) { set %testbans $ibl(#spelletjes,0) while %testbans > 30 { mode $chan -bbbbbbbb $ibl(#spelletjes,%testbans) $ibl(#spelletjes,$calc(%testbans - 1)) $ibl(#spelletjes,$calc(%testbans - 2)) $ibl(#spelletjes,$calc(%testbans - 3)) $ibl(#spelletjes,$calc(%testbans - 4)) $ibl(#spelletjes,$calc(%testbans - 5)) $ibl(#spelletjes,$calc(%testbans - 6)) $ibl(#spelletjes,$calc(%testbans - 7)) dec %testbans 8 } } }

and came to the conclusion that I must be missing something here. the while is always correct until %testbans goes under 30, wich is when the script should stop. There are like 260 bans in the ban list.

I must be forgetting something here...