Filters say of illegal characters (#13112)

* Filters say of illegal characters

* No more ~
This commit is contained in:
farie82
2020-03-17 20:02:40 +01:00
committed by GitHub
parent 93c870a2be
commit 0cc109e53e
+7 -2
View File
@@ -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(.)
. = trim_right(.)
#undef ILLEGAL_CHARACTERS_LIST