diff --git a/changelog.md b/changelog.md index 18aeba519f41..dad417b786aa 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,7 @@ * New attack animation for the Peasant. ### Miscellaneous and bug fixes * Added an advanced preference to enable experimental PRNG combat. + * Fixed MP admins being unable to observe private games. ## Version 1.14.3 ### AI diff --git a/src/game_initialization/multiplayer.cpp b/src/game_initialization/multiplayer.cpp index 5880773bad5c..f6301a83fbc3 100644 --- a/src/game_initialization/multiplayer.cpp +++ b/src/game_initialization/multiplayer.cpp @@ -176,6 +176,12 @@ std::pair open_connection(std::string host) throw wesnothd_rejected_client_error(error_message); } + // The only message we should get here is the admin authentication message. + // It's sent after [join_lobby] and before the initial gamelist. + if(const config& message = data.child("message")) { + preferences::parse_admin_authentication(message["sender"], message["message"]); + } + // Continue if we did not get a direction to login if(!data.has_child("mustlogin")) { continue;