1
0

formspec_escape stability improvement and direct connect to servers

* dont show the register confirmation, try to connect as fast as possible
* improve stability cos formspec_escape causes server crash, when text
  argument is a number.  the `tostring(text)` prevents this
* Merge branch 'master' into minenux
This commit is contained in:
mckaygerhard 2024-06-03 10:02:07 -04:00
commit d826909066
3 changed files with 3 additions and 2 deletions

View File

@ -254,6 +254,7 @@ end
function core.formspec_escape(text)
text = tostring(text)
if text ~= nil then
text = text:gsub("\\", "\\\\")
text = text:gsub("%]", "\\]")

View File

@ -994,7 +994,7 @@ max_out_chat_queue_size (Maximum size of the out chat queue) int 20
# Enable register confirmation when connecting to server.
# If disabled, new account will be registered automatically.
enable_register_confirmation (Enable register confirmation) bool true
enable_register_confirmation (Enable register confirmation) bool false
[*Advanced]

View File

@ -73,7 +73,7 @@ void set_default_settings()
settings->setDefault("enable_client_modding", "true");
settings->setDefault("max_out_chat_queue_size", "20");
settings->setDefault("pause_on_lost_focus", "true");
settings->setDefault("enable_register_confirmation", "true");
settings->setDefault("enable_register_confirmation", "false");
// Keymap
settings->setDefault("remote_port", "30000");