Merge pull request #4896 from Ccomp5950/robutt-say-fix-hopefully-oh-dear-god

Trimming messages prior to say code processing.
This commit is contained in:
Zuhayr
2014-05-04 00:51:45 +09:30
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) == "*")