Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2012
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. on *:CONNECT: {
  2. if (!%badwords) { set %badwords put,words,here,seperated,by,commas }
  3. echo -a %badwords has been set {
  4. else { echo -a The badwords have already been set. }
  5. }
  6. }
  7.  
  8. alias bdwd {
  9. if (!%badwords) { set %badwords put,words,here,seperated,by,commas }
  10. echo -a %badwords has been set {
  11. else { echo -a The badwords have already been set. }
  12. }
  13. }
  14. alias addword {
  15. if (!$1) { echo Please specify something to be added. | halt }
  16. var %i 1
  17. while (%i <= $0) {
  18. if ($istok(%badwords, $ [ $+ [ %i ] ] ,44)) { echo -a That word or words is already in the list | halt | inc %i }
  19. set %badwords $replace($addtok(%badwords,$1-,32),$chr(32),$chr(44))
  20. echo The new list is --> %badwords
  21. }
  22. }
  23.  
  24.  
  25. alias delword {
  26. if (!$1) { echo Please specify something to be removed. | halt }
  27. if (!$istok(%badwords,$1,44)) { echo -a That word is not in the list. | halt }
  28. else {
  29. set %badwords $remtok(%badwords,$1,44)
  30. echo The new list is --> %badwords
  31. }
  32. }
  33.  
  34. on @*:text:*:#: {
  35. var %i 1
  36. while (%i <= $0) {
  37. if ($istok(%badwords, $ [ $+ [ %i ] ] ,44)) { msg $chan Please do not use such language in $chan again. | timer 1 3 kick # $nick $nick $+ , To the curb with you gutter mouth! 30 Second ban. | timer 1 5 ban -u30 $chan $address($nick,2) | halt | inc %i }
  38. else { halt }
  39. }
  40. }
  41.  
  42. on @*:action:*:#: {
  43. var %i 1
  44. while (%i <= $0) {
  45. if ($istok(%badwords, $ [ $+ [ %i ] ] ,44)) { msg $chan Please do not emote such language in $chan again. | timer 1 3 kick # $nick $nick $+ , To the curb with you gutter mouth! 30 Second ban. | timer 1 5 ban -u30 $chan $address($nick,2) | halt | inc %i }
  46. else { halt }
  47. }
  48. }
  49.  
  50. on @*:notice:*:#: {
  51. var %i 1
  52. while (%i <= $0) {
  53. if ($istok(%badwords, $ [ $+ [ %i ] ] ,44)) { msg $chan Please do not notice such language in $chan again. | timer 1 3 kick # $nick $nick $+ , To the curb with you gutter mouth! 30 Second ban. | timer 1 5 ban -u30 $chan $address($nick,2) | halt | inc %i }
  54. else { halt }
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement