[MIRROR] encode patch (#11356)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-08 05:12:54 -07:00
committed by GitHub
parent be6c681c50
commit 25d93e0895
9 changed files with 32 additions and 54 deletions

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