File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -912,6 +912,10 @@ serverlist_file (Serverlist file) string favoriteservers.txt
912
912
# 0 to disable queueing and -1 to make the queue size unlimited.
913
913
max_out_chat_queue_size (Maximum size of the out chat queue) int 20
914
914
915
+ # Enable register confirmation when connecting to server.
916
+ # If disabled, new account will be registered automatically.
917
+ enable_register_confirmation (Enable register confirmation) bool true
918
+
915
919
[*Advanced]
916
920
917
921
# Timeout for client to remove unused map data from memory.
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ void set_default_settings(Settings *settings)
60
60
settings->setDefault (" enable_client_modding" , " false" );
61
61
settings->setDefault (" max_out_chat_queue_size" , " 20" );
62
62
settings->setDefault (" pause_on_lost_focus" , " false" );
63
+ settings->setDefault (" enable_register_confirmation" , " true" );
63
64
64
65
// Keymap
65
66
settings->setDefault (" remote_port" , " 30000" );
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ void Client::handleCommand_Hello(NetworkPacket* pkt)
98
98
// Authenticate using that method, or abort if there wasn't any method found
99
99
if (chosen_auth_mechanism != AUTH_MECHANISM_NONE) {
100
100
if (chosen_auth_mechanism == AUTH_MECHANISM_FIRST_SRP
101
- && !m_simple_singleplayer_mode) {
101
+ && !m_simple_singleplayer_mode
102
+ && g_settings->getBool (" enable_register_confirmation" )) {
102
103
promptConfirmRegistration (chosen_auth_mechanism);
103
104
} else {
104
105
startAuth (chosen_auth_mechanism);
You can’t perform that action at this time.
0 commit comments