if (%flood . [ $+ [ $nick ] ] == 5) {
Well, your code is wrong too, although it seems like a typo. :tongue:
Also, I wouldn't ignore *!*@*, sure it prevents 100% the displaying of messages, but:
1) It doesn't prevent me of receiving them anyway (check the debug info). /silence does, but I don't know if it's supported on most networks, so I won't use it here;
2) Innocent people might message me during that interval, so I'd rather just ignore the related address, for more than 5s. If I get attacked by floodclones, well, /ignore wouldn't completely block them from my connection anyway, also they could attack me after 6+s too and I'd still see their messages, so..
About the code itself since it was first shown, I think the variable name should contain the channel too, not only the nick - also, not the nick at all, but rather its address. BTW, [ ] brackets aren't needed everywhere/everytime.
on @*:TEXT:*:#:{
inc -u5 $+(%,flood;,$address,;,$chan)
if ( [ [ $+(%,flood;,$address,;,$chan) ] ] > 4) {
ban -k $chan $nick 3 Stop flooding dude
ignore -u60 $nick 3
}
}
Edit: some tweaks, I'm really obsessed with tweaks.. tweaks tweaks tweaks