mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[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:
committed by
GitHub
parent
aae4063c27
commit
7e80962c40
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user