Stop double-sanitization of muffled emotes

Fixes #6073
This commit is contained in:
Meghan-Rossi
2019-10-17 18:27:30 +01:00
parent cabd4dddab
commit e0cb0e9875

View File

@@ -22,12 +22,13 @@
usr << "<font color='red'>Speech is currently admin-disabled.</font>"
return
message = sanitize_or_reflect(message,src) //VOREStation Edit - Reflect too-long messages (within reason)
//message = sanitize(message) //VOREStation removal - moving this to after muffled check to avoid double-sanitization problems.
set_typing_indicator(FALSE)
//VOREStation Edit Start
if(muffled)
return me_verb_subtle(message)
message = sanitize_or_reflect(message,src) //VOREStation Edit - Reflect too-long messages (within reason)
//VOREStation Edit End
if(use_me)
usr.emote("me",usr.emote_type,message)