1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

[Server] Some fixes in requests to the master server

This commit is contained in:
Koncord 2017-02-21 00:43:30 +08:00
parent b7ab831c46
commit edfade2a90

View file

@ -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();