Advertisement
SparkzxViperz

Untitled

Nov 14th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. alias sticky {
  2. var %re = /(.)\1{9,}/
  3. return $iif($regex($1-,%re), $regml(1), $null)
  4. }
  5. on @*:Text:*:#: {
  6. var %x = 1
  7. while ($gettok($1-, %x, 32) != $null) {
  8. var %word = $v1
  9. if ($read(modlist.txt,nw,$nick)) { return }
  10. if ($read(reglist.txt,nw,$nick)) { return }
  11. ; Checking if there's sticky letters in the word..
  12. if ($sticky(%word) != $null) {
  13. set -e $+(%,c,$chr(32),$int($v1))
  14. inc $+(%,$nick)
  15. if ($($+(%,$nick),2) > 2) {
  16. .msg $chan .timeout $nick 2
  17. .msg $chan .timeout $nick 2
  18. unset $($+(%,$nick),1)
  19.  
  20. }
  21. elseif ($($+(%,$nick),2) = 2) {
  22. .msg $chan .timeout $nick 2
  23. .msg $chan .timeout $nick 2
  24.  
  25.  
  26. }
  27. else {
  28. .msg $chan .timeout $nick 2
  29. .msg $chan .timeout $nick 2
  30. }
  31.  
  32. break
  33. }
  34. inc %x
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement