[MIRROR] rework tgui say long message handling (#10198)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-20 05:39:28 -07:00
committed by GitHub
parent aae4063c27
commit 7e80962c40
2 changed files with 19 additions and 8 deletions

View File

@@ -130,4 +130,8 @@
if(type == "entry" || type == "force")
handle_entry(type, payload)
return TRUE
if(type == "lenwarn")
var/mlen = payload["length"]
var/maxlen = payload["maxlength"]
to_chat(client, span_warning(span_bold("Warning") + ": Message with [mlen] exceeded the maximum length of [maxlen]."))
return FALSE