rework tgui say long message handling (#17184)

* rework tgui say long message handling

* .

* Fix

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2025-02-18 18:46:22 +01:00
committed by GitHub
parent 0364d69964
commit 494205604c
2 changed files with 19 additions and 8 deletions
@@ -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