pony

profanity not working

Apr 13th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. #profanity 0ff
  2. on *:text:*:#: {
  3. if (%profanity. [ $+ [ # ] ] == ON) {
  4. if ($me isop #) || ($me isowner #) {
  5. set %prof.text $strip($1-)
  6. set %prof.nick $nick
  7. set %prof.nick2 $converter($nick)
  8. set %prof.chan #
  9. profanity
  10. }
  11. }
  12. }
  13. alias profanity {
  14. var %prof = 0
  15. :profstart
  16. var %prof = $calc(%prof + 1)
  17. if ($read(profanity.txt,%prof) == $null) { goto profend }
  18. if ($read(profanity.txt,%prof) isin %prof.text) {
  19. inc %prof. [ $+ [ # ] ] [ $+ [ %prof.nick ] ]
  20. if (%prof. [ $+ [ # ] ] [ $+ [ %prof.nick ] ] == 1) { [ $+ [ %prof.chan ] ] msg %prof.chan Please do not use profanity in this room. We prefer Not to have that word said in this Room. You have been 4 Warned | halt }
  21. if (%prof. [ $+ [ # ] ] [ $+ [ %prof.nick ] ] == 2) { [ $+ [ %prof.chan ] ] msg %prof.chan %prof.nick 4 You were warned about the profanity once. Next time you will be Kicked | halt }
  22. if (%prof. [ $+ [ # ] ] [ $+ [ %prof.nick ] ] == 3) { [ $+ [ %prof.chan ] ] kick %prof.chan %prof.nick You were warned about the profanity once. Next time you will be banned | halt }
  23. if (%prof. [ $+ [ # ] ] [ $+ [ %prof.nick ] ] == 4) { [ $+ [ %prof.chan ] ] access %prof.chan add deny $address(%prof.nick,1) $crlf kick %prof.chan %prof.nick [-Banned-] Iwarnedyouabouttheprofanitytwice. | unset %prof. [ $+ [ # ] ] [ $+ [ %prof.nick ] ] | halt }
  24. }
  25. goto profstart
  26. :profend
  27. halt
  28. }
  29. #profanity end
  30. menu menubar,channel {
  31. =Profanity Filter= %profanity. [ $+ [ # ] ]
  32. .ON: {
  33. set %profanity. [ $+ [ # ] ] ON
  34. msg # Profanity Filter has ben turned On
  35. echo -a 9[Profanity Filter On]
  36. }
  37. .OFF: {
  38. unset %prof. [ $+ [ # ] ] [ $+ [ * ] ]
  39. unset %profanity. [ $+ [ # ] ]
  40. msg # Profanity filter Off
  41. echo -a 4[Profanity Filter Off]
  42. }
  43. .-
  44. .Edit Words:/run profanity.txt
  45. }
  46.  
Advertisement
Add Comment
Please, Sign In to add comment