1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
17cb07a366 formspec_escape stability improvement
* formspec_escape causes server crash, when text argument is a number.
  the `tostring(text)` prevents this
* backported https://github.com/MultiCraft/MultiCraft/pull/87
2024-06-03 09:41:55 -04:00
ce35eb4122 dont show the register confirmation, try to connect as fast as possible
* this is a security risk, but also a easy step.. the easy of use
  is a key to create a anarchy environment where people must learn
  to take care by itselft
2024-06-03 09:26:57 -04:00
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");