diff --git a/code/modules/mob/say.dm b/code/modules/mob/say.dm index 93eb035b187..53660f5b55d 100644 --- a/code/modules/mob/say.dm +++ b/code/modules/mob/say.dm @@ -1,4 +1,7 @@ +#define ILLEGAL_CHARACTERS_LIST list("<" = "", ">" = "", "^" = "", \ + "\[" = "", "]" = "", "{" = "", "}" = "") + /mob/proc/say() return @@ -23,7 +26,7 @@ else if(response == "No") return */ - + message = replace_characters(message, ILLEGAL_CHARACTERS_LIST) set_typing_indicator(0) usr.say(message) @@ -205,4 +208,6 @@ . = "" for(var/datum/multilingual_say_piece/S in message_pieces) . += S.message + " " - . = trim_right(.) \ No newline at end of file + . = trim_right(.) + +#undef ILLEGAL_CHARACTERS_LIST