I'm looking for a way to kick users for flood. The idea is:
on [lessthanhalfop]:text:*:#chan: {
If [timer$nick] !== 0 {
set %kickstate$nick +1
if %kickstate$nick < 4 {
kick $nick #chan [reason:flood]
echo > kickedlist.txt
delete [timer$nick]
delete [timer$nick]
makenew timer with 4 seconds
}
Set timer$nick 5seconds
}
Can anyone help me with this so that it is workable with unique timers for each $nick so that they do not overide for each user. All i want it to do is kick people that flood the chat by typing within a particular time period(in this case 2 secons). Can anyone help me solve this?
I'm using mIRC, but the channel is in the swiftirc network, if anyone wants to know.