kick_msg.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. -- Localize for performance.
  2. local math_random = math.random
  3. local foul = {
  4. "No bad words!",
  5. "No crudity! We breath only clean air here.",
  6. "Yuck.",
  7. "Stop breathing our air!",
  8. "Please don't pollute our air with foul language.",
  9. "Only desperate people spout that kind of talk.",
  10. "Disgusting. Clean up your chat.",
  11. "Ew!",
  12. "Now *that* was not appropriate talk.",
  13. "Now applying duct-tape to your chat.",
  14. "We don't live in Washington, DC. Yucky talk is not allowed.",
  15. "Express your feelings without fouling the chat.",
  16. "Crudity!",
  17. "This server does not comprehend noob talk.",
  18. "Do you come from Washington, DC?",
  19. "Oh, gross!",
  20. "That qualifies as verbal pollution.",
  21. "Not the best way to express oneself.",
  22. "Yuck. Yuck. Yuck.",
  23. "Phew. Good thing nobody actually read that!",
  24. "You have been warned for uninteresting language.",
  25. "Don't say rude talk here.",
  26. "Rude!",
  27. "Pollution is bad. Foul language pollutes the soul.",
  28. "Wash your mood.",
  29. }
  30. local curse = {
  31. "Cursing is banned.",
  32. "No bad words!",
  33. "No cursing! Your chat needs handyman's secret weapon: duct tape.",
  34. "Shut up.",
  35. "Cursing is for noobs.",
  36. "What, you couldn't express yourself civilly?",
  37. "We don't live in Washington, DC. Talk like that is not allowed.",
  38. "Your chat was duct-taped.",
  39. "Bad language. Do you happen to live in Chicago?",
  40. "Express your feelings without ruining the chat.",
  41. "This is for that bad word you used!",
  42. "Don't be profane.",
  43. "Profantiy!",
  44. "Consider yourself warned for uninteresting language.",
  45. "Pollution is bad. Cursing pollutes the soul.",
  46. "Wash your mood!",
  47. }
  48. anticurse.get_kick_message = function(reason)
  49. local prefix = ""
  50. if reason == "foul" then
  51. local len = #foul
  52. local idx = math_random(1, len)
  53. if foul[idx] then
  54. return prefix..foul[idx]
  55. end
  56. elseif reason == "curse" then
  57. local len = #curse
  58. local idx = math_random(1, len)
  59. if curse[idx] then
  60. return prefix..curse[idx]
  61. end
  62. else
  63. return "Unknown reason. This is a bug."
  64. end
  65. end