From c698196766b60b2c0068bfca99506a51db236af0 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Mon, 16 Sep 2024 18:55:56 -0700 Subject: [PATCH] Remove the default max length from tgui_input_text. (#86692) this should mirror `input() as text`, and `input() as text` has no default max length. Anything that needs a limited input must specifically request it to avoid collateral damage for inputs that don't need it (like admin verbs) --- code/modules/tgui_input/text.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/tgui_input/text.dm b/code/modules/tgui_input/text.dm index ec94fbd6766..2476ec16342 100644 --- a/code/modules/tgui_input/text.dm +++ b/code/modules/tgui_input/text.dm @@ -15,7 +15,7 @@ * * encode - Toggling this determines if input is filtered via html_encode. Setting this to FALSE gives raw input. * * timeout - The timeout of the textbox, after which the modal will close and qdel itself. Set to zero for no timeout. */ -/proc/tgui_input_text(mob/user, message = "", title = "Text Input", default, max_length = MAX_MESSAGE_LEN, multiline = FALSE, encode = TRUE, timeout = 0, ui_state = GLOB.always_state) +/proc/tgui_input_text(mob/user, message = "", title = "Text Input", default, max_length = INFINITY, multiline = FALSE, encode = TRUE, timeout = 0, ui_state = GLOB.always_state) if (!user) user = usr if (!istype(user))