Advertisement
SparkzxViperz

Untitled

Nov 14th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. on *:text:*:#: {
  2. if ($read(modlist.txt,nw,$nick)) { return }
  3. if ($read(reglist.txt,nw,$nick)) { return }
  4. var %acceptable_message_length = 300
  5. if ($len($1-) > %acceptable_message_length) {
  6. var %re /( $+ $replacex(%e,$chr(32),|,/,\/,$chr(40),$+(\,$chr(40)),$chr(41),$+(\,$chr(41)),\,\\,|,\|,],\],[,\[) $+ )/Sig
  7. if ($read(modlist.txt,nw,$nick)) { return }
  8. if ($read(reglist.txt,nw,$nick)) { return }
  9. if $regex($1-,%re) >= 7 {
  10. set -e $+(%,c,$chr(32),$int($v1))
  11. inc $+(%,$nick)
  12. if ($($+(%,$nick),2) > 2) {
  13. .msg $chan .timeout $nick 3600
  14. .msg $chan .timeout $nick 3600
  15. unset $($+(%,$nick),1)
  16.  
  17. }
  18. elseif ($($+(%,$nick),2) = 2) {
  19. .msg $chan .timeout $nick 2
  20. .msg $chan .timeout $nick 2
  21. }
  22. else {
  23. .msg $chan .timeout $nick 2
  24. .msg $chan .timeout $nick 2
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement