on *:start: {
;if user sends more than %flood.lines in this time ban them
set %flood.unset 10
;if a user sends more than this many lines/actions in %flood.unset ban them
set %flood.lines 7
;this is the bantime in seconds
set %flood.bantime 600
}
ON @*:TEXT:*:#theoutboards: {
if ($nick !isop $chan) {
set $($+(-u,%flood.unset)) $+(%,flood.,$chan,.text.,$nick,.,$ticks,.,$rand(1001,1999)) .
echo -st - $+(%,flood.,$chan,.text.,$nick,.*) - $var($+(%,flood.,$chan,.text.,$nick,.*))
if ($var($+(%,flood.,$chan,.text.,$nick,.*)) > %flood.lines) {
ban $($+(-ku,%flood.bantime)) $chan $nick 3 Don't flood
}
}
}
ON @*:ACTION:*:#theoutboards: {
if ($nick !isop $chan) {
set $($+(-u,%flood.unset)) $+(%,flood.,$chan,.action.,$nick,.,$ticks,.,$rand(1001,1999)) .
if ($var($+(%,flood.,$chan,.action.,$nick,.*)) > %flood.lines) {
ban $($+(-ku,%flood.bantime)) $chan $nick 3 Don't flood
}
}
}