Advertisement
GregoryRasputin

Flood Judges Fix

Jun 8th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. on *:text:*:#:{
  2. if ($me !isop #) { return }
  3. if ($IsNormUser($nick) == no) { return }
  4. inc -u3 %asd. [ $+ [ $nick ] $+ [ $chan ] ]
  5. if (%asd. [ $+ [ $nick ] $+ [ $chan ] ] == 4) {
  6. if ($nick ison #) { ban -ku31536000 # $nick 4 4Don't flood - 12You Have typed 0,1[TEXT]12,0 5 Lines below 1sec 11,1[banned 525600min] }
  7. unset %asd. [ $+ [ $nick ] $+ [ $chan ] ]
  8. }
  9. }
  10.  
  11. on *:action:*:#:{
  12. if ($me !isop #) { return }
  13. if ($IsNormUser($nick) == no) { return }
  14. inc -u3 %asda. [ $+ [ $nick ] $+ [ $chan ] ]
  15. if (%asda. [ $+ [ $nick ] $+ [ $chan ] ] == 4) {
  16. if ($nick ison #) { ban -ku31536000 # $nick 4 4Don't flood - 12You Have typed 6,1[ACTION]12,0 5 Lines below 1sec 11,1[banned 525600min] }
  17. unset %asda. [ $+ [ $nick ] $+ [ $chan ] ]
  18. }
  19. }
  20.  
  21. on *:notice:*:#:{
  22. if ($me !isop #) { return }
  23. if ($IsNormUser($nick) == no) { return }
  24. inc -u3 %asdn. [ $+ [ $nick ] $+ [ $chan ] ]
  25. if (%asdn. [ $+ [ $nick ] $+ [ $chan ] ] == 4) {
  26. if ($nick ison #) { ban -ku31536000 # $nick 4 4Don't flood - 12You Have typed 7,1[NOTICE]12,0 5 Lines below 1sec 11,1[banned 525600min] }
  27. unset %asdn. [ $+ [ $nick ] $+ [ $chan ] ]
  28. }
  29. }
  30.  
  31. alias IsNormUser {
  32. ;; checking if the user is in @+- mode #
  33. ; if (@+- isin $nick(#,$1).pnick) { return no | halt }
  34.  
  35. ; checking if user is op # mode
  36. if ($1 isop #) { return no | halt }
  37. ; checking if user is in UVoice mode #
  38. if ($mid($nick(#,$1).pnick,1,1) == -) { return no | halt }
  39. ; the user is no mode in # so return yes
  40. return yes
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement