From e7be62f700a9507724b8e8ba97ec654c5b6711ef Mon Sep 17 00:00:00 2001 From: Wildkins Date: Thu, 22 Apr 2021 10:03:56 -0400 Subject: [PATCH] Fix a hole the exact size of Belgium (#11735) --- code/modules/mob/say.dm | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index e2c69635fe5..b4e904e1292 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -9,21 +9,12 @@ /mob/verb/say_verb(message as text) set name = "Say" set category = "IC" + if(say_disabled) //This is here to try to identify lag problems to_chat(usr, "Speech is currently admin-disabled.") return - //Let's try to make users fix their errors - we try to detect single, out-of-place letters and 'unintended' words - /* - var/first_letter = copytext(message,1,2) - if((copytext(message,2,3) == " " && first_letter != "I" && first_letter != "A" && first_letter != ";") || cmptext(copytext(message,1,5), "say ") || cmptext(copytext(message,1,4), "me ") || cmptext(copytext(message,1,6), "looc ") || cmptext(copytext(message,1,5), "ooc ") || cmptext(copytext(message,2,6), "say ")) - var/response = alert(usr, "Do you really want to say this using the *say* verb?\n\n[message]\n", "Confirm your message", "Yes", "Edit message", "No") - if(response == "Edit message") - message = input(usr, "Please edit your message carefully:", "Edit message", message) - if(!message) - return - else if(response == "No") - return - */ + + message = sanitize(message) set_typing_indicator(0)