From edfade2a90f373dcdf7b7931c4ce6d31dadbbe1f Mon Sep 17 00:00:00 2001 From: Koncord Date: Tue, 21 Feb 2017 00:43:30 +0800 Subject: [PATCH] [Server] Some fixes in requests to the master server --- apps/openmw-mp/MasterClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/MasterClient.cpp b/apps/openmw-mp/MasterClient.cpp index 3742b0d6e..72a50af84 100644 --- a/apps/openmw-mp/MasterClient.cpp +++ b/apps/openmw-mp/MasterClient.cpp @@ -71,8 +71,8 @@ MasterClient::Send(std::string hostname, std::string modname, unsigned maxPlayer sstr << "\"modname\": \"" << modname.c_str() << "\", "; sstr << "\"players\": " << players << ", "; sstr << "\"max_players\": " << maxPlayers << ", "; - sstr << "\"version\": " << TES3MP_VERSION << ", "; - sstr << "\"passw\": " << mwmp::Networking::get().isPassworded(); + sstr << "\"version\": \"" << TES3MP_VERSION << "\", "; + sstr << "\"passw\": " << (mwmp::Networking::get().isPassworded() ? "true" : "false"); sstr << "}"; mutexData.unlock();