Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:*:#YOURCHANNEL: {
- if ($3 ison $chan) && ($4 ison $chan) && ($5 ison $chan) && ($6 ison $chan) {
- if ($nick isop $chan) { halt }
- if ($nick ishop $chan) { halt }
- else { cs ban # $nick MassHL detected. Get the fuck out. }
- }
- if ($nick isreg $chan) {
- if (%antiflood. [ $+ [ $nick ] ]) && (%antifloodmemory. [ $+ [ $nick ] ] == $1-) {
- inc %antiflood. $+ $nick
- if (%antiflood. [ $+ [ $nick ] ] == 3) {
- mode # +b-Q $address($nick,2) | kick # $nick Flood detected. | timer 1 30 mode # -b $address($nick,2) }
- }
- else { set %antiflood. $+ $nick 1 }
- if (%antiflood2. [ $+ [ $nick ] ]) {
- inc %antiflood2. $+ $nick
- if (%antiflood2. [ $+ [ $nick ] ] == 5) {
- mode # +b-Q $address($nick,2) | kick # $nick Flood detected. | timer 1 10 mode # -b $address($nick,2) }
- }
- if (!%antiflood. [ $+ [ $nick ] ]) || (!%antiflood2. [ $+ [ $nick ] ]) {
- set %antiflood. $+ $nick 1
- set %antiflood2. $+ $nick 1
- timer 1 4 unset %antiflood. $+ $nick
- timer 1 4 unset %antiflood2. $+ $nick
- }
- set %antifloodmemory. $+ $nick $1-
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement