diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index b7bd4d6a7..be19e5b51 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -254,6 +254,7 @@ end function core.formspec_escape(text) + text = tostring(text) if text ~= nil then text = text:gsub("\\", "\\\\") text = text:gsub("%]", "\\]") diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 18c259542..4aeb390c0 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -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] diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 4ea765288..b84c69a9d 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -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");