encode patch (#18182)

* encode patch

* yusck
This commit is contained in:
Kashargul
2025-08-08 09:05:58 +02:00
committed by GitHub
parent 1387cc4b77
commit 9260a194c3
9 changed files with 32 additions and 54 deletions
+1 -2
View File
@@ -124,10 +124,9 @@
/datum/data/pda/app/messenger/proc/create_message(var/mob/living/U, var/obj/item/pda/P)
var/t = tgui_input_text(U, "Please enter message", name, null)
var/t = tgui_input_text(U, "Please enter message", name, null, MAX_MESSAGE_LEN)
if(!t)
return
t = sanitize(copytext(t, 1, MAX_MESSAGE_LEN))
t = readd_quotes(t)
if(!t || !istype(P))
return