Advertisement
Guest User

Untitled

a guest
Jul 30th, 2012
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. on *:text:*:#YOURCHANNEL: {
  2. if ($3 ison $chan) && ($4 ison $chan) && ($5 ison $chan) && ($6 ison $chan) {
  3. if ($nick isop $chan) { halt }
  4. if ($nick ishop $chan) { halt }
  5. else { cs ban # $nick MassHL detected. Get the fuck out. }
  6. }
  7. if ($nick isreg $chan) {
  8. if (%antiflood. [ $+ [ $nick ] ]) && (%antifloodmemory. [ $+ [ $nick ] ] == $1-) {
  9. inc %antiflood. $+ $nick
  10. if (%antiflood. [ $+ [ $nick ] ] == 3) {
  11. mode # +b-Q $address($nick,2) | kick # $nick Flood detected. | timer 1 30 mode # -b $address($nick,2) }
  12. }
  13. else { set %antiflood. $+ $nick 1 }
  14. if (%antiflood2. [ $+ [ $nick ] ]) {
  15. inc %antiflood2. $+ $nick
  16. if (%antiflood2. [ $+ [ $nick ] ] == 5) {
  17. mode # +b-Q $address($nick,2) | kick # $nick Flood detected. | timer 1 10 mode # -b $address($nick,2) }
  18. }
  19. if (!%antiflood. [ $+ [ $nick ] ]) || (!%antiflood2. [ $+ [ $nick ] ]) {
  20. set %antiflood. $+ $nick 1
  21. set %antiflood2. $+ $nick 1
  22. timer 1 4 unset %antiflood. $+ $nick
  23. timer 1 4 unset %antiflood2. $+ $nick
  24. }
  25. set %antifloodmemory. $+ $nick $1-
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement