X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/175f44511b8b3cf327e4ed9268420e423229691a..9dc2984179d989f8774ea7ff6d72c81d376b5a2c:/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp index 5a101570..92e1170e 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp @@ -30,7 +30,7 @@ using STG::PARSER::USER_INFO; int USER_INFO::Start(void * /*data*/, const char *el, const char **attr) { - if (strcasecmp(el, tag.c_str()) != 0) + if (strcasecmp(el, m_tag.c_str()) != 0) return -1; if (!attr[1]) @@ -45,16 +45,16 @@ void USER_INFO::CreateAnswer() CONST_USER_PTR u; if (m_users.FindByName(m_login, &u)) { - answer = ""; + m_answer = ""; return; } - answer = "GetAuthorizedModificationTime()) + "\"" + + m_answer = "GetAuthorizedModificationTime()) + "\"" + " lastDisconnectTime=\"" + x2str(u->GetConnectedModificationTime()) + "\"" + " connected=\"" + (u->GetConnected() ? "true" : "false") + "\"" + " lastDisconnectReason=\"" + u->GetLastDisconnectReason() + "\">"; std::vector list(u->GetAuthorizers()); for (std::vector::const_iterator it = list.begin(); it != list.end(); ++it) - answer += ""; - answer += ""; + m_answer += ""; + m_answer += ""; }