X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c4456f2cae7261f7263e3708ff995bade7da722f..a8f9a1d87d5c6847b368984454c09c597757aba2:/stglibs/srvconf.lib/parser.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parser.cpp b/stglibs/srvconf.lib/parser.cpp index 62537359..40557e3c 100644 --- a/stglibs/srvconf.lib/parser.cpp +++ b/stglibs/srvconf.lib/parser.cpp @@ -45,9 +45,7 @@ using namespace std; PARSER_GET_USERS::PARSER_GET_USERS() : RecvUserDataCb(NULL), userDataCb(NULL), - user(), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -387,9 +385,7 @@ userDataCb = data; PARSER_GET_USER::PARSER_GET_USER() : RecvUserDataCb(NULL), userDataCb(NULL), - user(), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -665,9 +661,7 @@ userDataCb = data; PARSER_GET_SERVER_INFO::PARSER_GET_SERVER_INFO() : RecvServerInfoDataCb(NULL), serverInfoDataCb(NULL), - depth(0), - error(false), - serverInfo() + depth(0) { } //----------------------------------------------------------------------------- @@ -825,9 +819,7 @@ if (strcmp(attr[0], "value") == 0) PARSER_AUTH_BY::PARSER_AUTH_BY() : RecvAuthByDataCb(NULL), authByDataCb(NULL), - depth(0), - error(false), - list() + depth(0) { } //----------------------------------------------------------------------------- @@ -848,8 +840,8 @@ else { if (strcasecmp(el, "Auth") == 0) { - if (attr && attr[0]) - list.push_back(attr[0]); + if (attr && attr[0] && attr[1]) + list.push_back(attr[1]); return 0; } } @@ -877,8 +869,7 @@ authByDataCb = data; PARSER_CHG_USER::PARSER_CHG_USER() : RecvChgUserCb(NULL), chgUserCbData(NULL), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -927,8 +918,7 @@ chgUserCbData = data; PARSER_CHECK_USER::PARSER_CHECK_USER() : RecvCheckUserCb(NULL), checkUserCbData(NULL), - depth(0), - error(false) + depth(0) { } //----------------------------------------------------------------------------- @@ -970,8 +960,7 @@ checkUserCbData = data; PARSER_SEND_MESSAGE::PARSER_SEND_MESSAGE() : RecvSendMessageCb(NULL), sendMessageCbData(NULL), - depth(0), - error(false) + depth(0) { } //-----------------------------------------------------------------------------