From cfd7d30d164e261f21a044e6998a4a69a1e13122 Mon Sep 17 00:00:00 2001 From: Mikhail Dzianishchyts Date: Sun, 7 Apr 2024 13:11:11 +0300 Subject: [PATCH] Use length_char in TGUI-say (#25036) --- code/modules/tgui_input/say_modal/tgui_say_speech.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/tgui_input/say_modal/tgui_say_speech.dm b/code/modules/tgui_input/say_modal/tgui_say_speech.dm index b7c9a48a065..8843a80431b 100644 --- a/code/modules/tgui_input/say_modal/tgui_say_speech.dm +++ b/code/modules/tgui_input/say_modal/tgui_say_speech.dm @@ -52,7 +52,7 @@ qdel(usr.client) message_admins("[hacker_man_ckey] was kicked for attemping to send a null message to TGUI-say.") CRASH("[hacker_man_ckey] entered in a null payload to the chat window.") - if(length(payload["entry"]) > MAX_MESSAGE_LEN) + if(length_char(payload["entry"]) > MAX_MESSAGE_LEN) var/hacker_man_ckey = usr.client.ckey qdel(usr.client) message_admins("[hacker_man_ckey] was kicked for attemping to bypass TGUI-say character limits.")