From d2b5f24545990ccade3b55627a85c8e5fb2cac86 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Sat, 3 May 2014 08:29:10 -0500 Subject: [PATCH] Trimming messages prior to say code processing. Hoping to fix any whitespace issues that stop processing of emotes and radio/language channels --- code/modules/mob/living/carbon/human/say.dm | 2 ++ code/modules/mob/living/silicon/say.dm | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/say.dm b/code/modules/mob/living/carbon/human/say.dm index 9173a4af885..8103d3f9509 100644 --- a/code/modules/mob/living/carbon/human/say.dm +++ b/code/modules/mob/living/carbon/human/say.dm @@ -9,6 +9,8 @@ src << "\red You cannot speak in IC (Muted)." return + message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN)) + if(stat == 2) return say_dead(message) diff --git a/code/modules/mob/living/silicon/say.dm b/code/modules/mob/living/silicon/say.dm index 1205965b102..8a3da816dc6 100644 --- a/code/modules/mob/living/silicon/say.dm +++ b/code/modules/mob/living/silicon/say.dm @@ -23,8 +23,9 @@ if (src.client.handle_spam_prevention(message,MUTE_IC)) return + message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN)) + if (stat == 2) - message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN)) return say_dead(message) if(copytext(message,1,2) == "*")