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:
commit
d826909066
@ -254,6 +254,7 @@ end
|
||||
|
||||
|
||||
function core.formspec_escape(text)
|
||||
text = tostring(text)
|
||||
if text ~= nil then
|
||||
text = text:gsub("\\", "\\\\")
|
||||
text = text:gsub("%]", "\\]")
|
||||
|
@ -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]
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user