1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- -- Localize for performance.
- local math_random = math.random
- local foul = {
- "No bad words!",
- "No crudity! We breath only clean air here.",
- "Yuck.",
- "Stop breathing our air!",
- "Please don't pollute our air with foul language.",
- "Only desperate people spout that kind of talk.",
- "Disgusting. Clean up your chat.",
- "Ew!",
- "Now *that* was not appropriate talk.",
- "Now applying duct-tape to your chat.",
- "We don't live in Washington, DC. Yucky talk is not allowed.",
- "Express your feelings without fouling the chat.",
- "Crudity!",
- "This server does not comprehend noob talk.",
- "Do you come from Washington, DC?",
- "Oh, gross!",
- "That qualifies as verbal pollution.",
- "Not the best way to express oneself.",
- "Yuck. Yuck. Yuck.",
- "Phew. Good thing nobody actually read that!",
- "You have been warned for uninteresting language.",
- "Don't say rude talk here.",
- "Rude!",
- "Pollution is bad. Foul language pollutes the soul.",
- "Wash your mood.",
- }
- local curse = {
- "Cursing is banned.",
- "No bad words!",
- "No cursing! Your chat needs handyman's secret weapon: duct tape.",
- "Shut up.",
- "Cursing is for noobs.",
- "What, you couldn't express yourself civilly?",
- "We don't live in Washington, DC. Talk like that is not allowed.",
- "Your chat was duct-taped.",
- "Bad language. Do you happen to live in Chicago?",
- "Express your feelings without ruining the chat.",
- "This is for that bad word you used!",
- "Don't be profane.",
- "Profantiy!",
- "Consider yourself warned for uninteresting language.",
- "Pollution is bad. Cursing pollutes the soul.",
- "Wash your mood!",
- }
- anticurse.get_kick_message = function(reason)
- local prefix = ""
- if reason == "foul" then
- local len = #foul
- local idx = math_random(1, len)
- if foul[idx] then
- return prefix..foul[idx]
- end
- elseif reason == "curse" then
- local len = #curse
- local idx = math_random(1, len)
- if curse[idx] then
- return prefix..curse[idx]
- end
- else
- return "Unknown reason. This is a bug."
- end
- end
|