Need help with this flood script - 20/02/05 10:39 PM
Note: I'm a newbie, I know it should be easy, since the title of the script is "simple flood protection".
Anyways, this is the script:
Basically, I want it to kick/time ban (for 10 minutes) someone from #theoutboards if they say 7 lines in 10 seconds.
How would I do this?
Anyways, this is the script:
Code:
on *:start: { ;if user sends more than %flood.lines in this time ban them set %flood.unset 3 ;if a user sends more than this many lines/actions in %flood.unset ban them set %flood.lines 5 ;this is the bantime in seconds set %flood.bantime 600 } ON @*:TEXT:*:#: { if ($nick !isop $chan) { inc $($+(-u,%flood.unset)) $+(%,flood.,$chan,.,text.,$nick) if ($($+(%,flood.,$chan,.,text.,$nick),2) >= %flood.lines) { ban $($+(-ku,%flood.bantime)) $chan $nick 3 Don't flood } } } ON @*:ACTION:*:#: { if ($nick !isop $chan) { inc $($+(-u,%flood.unset)) $+(%,flood.,$chan,.,action.,$nick) if ($($+(%,flood.,$chan,.,action.,$nick),2) >= %flood.lines) { ban $($+(-ku,%flood.bantime)) $chan $nick 3 Don't flood } } }
Basically, I want it to kick/time ban (for 10 minutes) someone from #theoutboards if they say 7 lines in 10 seconds.
How would I do this?