X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b3139bf3f37b3b0244efea8b4b5e5a7d0bc90095..76d211bbdf3a57afd72b3f3ac736c42cc17e3cac:/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp index 72c3c6ec..de28eaba 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_user_info.cpp @@ -20,6 +20,7 @@ #include "parser_user_info.h" +#include "stg/users.h" #include "stg/user.h" #include "stg/common.h" @@ -49,22 +50,19 @@ return 0; void PARSER_USER_INFO::CreateAnswer() { -answerList->clear(); - CONST_USER_PTR u; if (users->FindByName(login, &u)) { - answerList->push_back(""); + answer = ""; return; } -std::string s = "GetAuthorizedModificationTime()) + "\"" + - " lastDisconnectTime=\"" + x2str(u->GetConnectedModificationTime()) + "\"" + - " connected=\"" + (u->GetConnected() ? "true" : "false") + "\"" + - " lastDisconnectReason=\"" + u->GetLastDisconnectReason() + "\">"; +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) - s += ""; -s += ""; -answerList->push_back(s); + answer += ""; +answer += ""; }