X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8c11e9e35e0cd09e25f513c15dc0c4a0613aa2f0..d230cb2411b6d2d6603a930f165bbd3138831eeb:/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp index e1da75b6..1ac27d65 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_auth_by.cpp @@ -28,19 +28,17 @@ return -1; void PARSER_AUTH_BY::CreateAnswer() { -answerList->erase(answerList->begin(), answerList->end()); - USER_PTR u; if (users->FindByName(login, &u)) { - answerList->push_back(""); + answer = ""; return; } -std::string s = ""; +answer.clear(); +answer += ""; 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 += ""; }