Fix variable name in JSON

This commit is contained in:
Koncord 2017-01-10 20:35:23 +08:00
parent e92df0c465
commit 2b0ae7b9ca

View file

@ -67,7 +67,7 @@ MasterClient::Send(std::string hostname, std::string modname, unsigned maxPlayer
sstr << "\"port\": " << serverPort << ", "; sstr << "\"port\": " << serverPort << ", ";
sstr << "\"query_port\": " << queryPort << ", "; sstr << "\"query_port\": " << queryPort << ", ";
sstr << "\"hostname\": \"" << hostname.c_str() << "\", "; sstr << "\"hostname\": \"" << hostname.c_str() << "\", ";
sstr << "\"hostname\": \"" << modname.c_str() << "\", "; sstr << "\"modname\": \"" << modname.c_str() << "\", ";
sstr << "\"players\": " << players << ", "; sstr << "\"players\": " << players << ", ";
sstr << "\"max_players\": " << maxPlayers; sstr << "\"max_players\": " << maxPlayers;
sstr << "}"; sstr << "}";