Trimming messages prior to say code processing.

Hoping to fix any whitespace issues that stop processing of emotes and radio/language channels
This commit is contained in:
Ccomp5950
2014-05-03 08:44:26 -05:00
parent 5586439dc8
commit d2b5f24545
2 changed files with 4 additions and 1 deletions
@@ -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)
+2 -1
View File
@@ -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) == "*")