Guest User

Untitled

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. on *:text:*:#: {
  2. if ($1 == !badword) && ($_chan($chan)) && ($istok(on off,$2,32)) && ($nick isop $chan) {
  3. set %_badword $iif($2 == off,$v2,on)
  4. notice $nick is %_badword for channel $chan
  5. }
  6. else {
  7. if (%_badword == on) && ($_chan($chan)) {
  8.  
  9. var %badword = facebook,gay,homo,youtube, %a = $numtok(%badword,44)
  10. while (%a) {
  11. var %bchk = $gettok(%badword,%a,44)
  12. if (%bchk isin $1-) {
  13. inc $+(%,badword,.,$nick,.,$chan)
  14. var %times = $($+(%,badword,.,$nick,.,$chan),2)
  15. if (%times == 1) {
  16. msg #opers Spamming in $chan $nick $+ . %times time. (said badword: $1- $+ )
  17. }
  18. elseif (%times == 2) {
  19. msg #opers Spamming in $chan $nick $+ . %times time. (said badword: $1- $+ )
  20. }
  21. elseif (%times > 2) {
  22. msg #opers Spamming in $chan $nick $+ . %times time. (said badword: $1- $+ )
  23. unset $+(%,badword,.,$nick,.,$chan)
  24. msg #opers reset badword for $nick
  25. }
  26. }
  27. dec %a
  28. }
  29. }
  30. }
  31. }
  32.  
  33. alias -l _chan {
  34. var %a = #, %b = $numtok(%a,44)
  35. while (%b) {
  36. if ($1 == $gettok(%a,%b,44)) || (%a == $chr(35)) {
  37. return $true
  38. }
  39. dec %b
  40. }
  41. }
Add Comment
Please, Sign In to add comment