if you are not op and someone floods/repeating its easy to ignore that automatically,
on *:text:*:#: {
if ($nick ison $chan) {
VAR %text = $hash($strip($1-),32)
IF ($len($strip($1-)) >= 9 ) {
VAR %old.text = %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ]
VAR %old.text = $deltok(%old.text,1,46) }
IF ((%rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] == $null) || (%old.text != %text)) {
SET -u790 %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] 1. $+ %text
RETURN
}
VAR %temp = %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ]
VAR %count = $gettok(%temp,1,46)
INC %count
SET -u60 %rp. [ $+ [ $chan ] $+ . $+ [ $nick ] ] %count $+ . $+ %text
IF (%count >= 5) {
if ($me isop $chan) {
mode # +f *4:2
ban $chan $address($nick,0) }
else { ignore -u70 $address($nick,0) }
.timer0 1 1 msg $chan 4 Flood Detected ..Ignored for 1min12┌∩┐4(◣_◢)
}
}
}