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)
This commit is contained in:
Kyle Spier-Swenson
2024-09-16 19:55:56 -06:00
committed by GitHub
parent 49d4856eb7
commit c698196766
+1 -1
View File
@@ -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))