X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9af0b6faad1f5e6ca2206f7cddc02885a08e718c..faf619a9b927923d90782ab28734916197ff16b4:/stglibs/srvconf.lib/parsers/server_info.cpp diff --git a/stglibs/srvconf.lib/parsers/server_info.cpp b/stglibs/srvconf.lib/parsers/server_info.cpp index 22a0e43c..f0033611 100644 --- a/stglibs/srvconf.lib/parsers/server_info.cpp +++ b/stglibs/srvconf.lib/parsers/server_info.cpp @@ -40,7 +40,7 @@ SERVER_INFO::PARSER::PARSER(CALLBACK f, void * d, const std::string & e) AddParser(propertyParsers, "version", info.version); AddParser(propertyParsers, "tariff", info.tariffType); AddParser(propertyParsers, "dir_num", info.dirNum); - AddParser(propertyParsers, "users_num", info.usersNum); + AddParser(propertyParsers, "user_num", info.usersNum); AddParser(propertyParsers, "tariff_num", info.tariffNum); for (size_t i = 0; i < DIR_NUM; i++) @@ -52,7 +52,7 @@ int SERVER_INFO::PARSER::ParseStart(const char *el, const char **attr) depth++; if (depth == 1) { - if (strcasecmp(el, "ServerInfo") == 0) + if (strcasecmp(el, "GetServerInfo") == 0) parsingAnswer = true; } else