This script bans user who is not opped, and messages 4 lines in 4 seconds for 10 minutes.
please add this pease of script too, but in a new remote file: on :text:!antiflood:#:{ if ($nick isop $chan) && ($2 == on) || ($2 == off) { set %antiflood. $+ [ $chan ] ] $2 | notice $nick Antiflood set
$2 }
else { if ($nick !isop $chan) { notice $nick You have no access to this command. }
else { if ($nick isop $chan) && ($2 != on) && ($2 != off) { notice $nick right format is: !antiflood on/off }
}
}
}
on *:text:*:#:{ if ($nick !isop $chan) && (%flood. [ $+ [ $chan ] ] == on) && (%lines. [ $+ [ $nick ] ] == 4) {
.kick $chan $nick Do not flood! Banned dor 10 minutes.
.unset %lines. [ $+ [ $nick ] ]
.mode $chan +b $address($nick,1)
.timer 1 600 mode $chan -b $address($nick,1) }
if { (!$nick !isop $chan) && (%lines. [ $nick ] ] != 4) && (%flood. [ $+ [ $chan ] ] == on) {
inc %lines. $+ $nick | timer 1 4 unset %lines. $+ $nick }
}