mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Filters say of illegal characters (#13112)
* Filters say of illegal characters * No more ~
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user