X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/df9f528d8ea5b3ba19bebcaf0324c3282edeffcc..65e7a8547ba44041cf6d0045b133e5263308cbd9:/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp index 60ceaaa8..0db867bb 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp @@ -22,7 +22,6 @@ #include "parser_admins.h" #include "stg/admins.h" -#include "stg/common.h" #include // strcasecmp @@ -31,6 +30,11 @@ using STG::PARSER::ADD_ADMIN; using STG::PARSER::DEL_ADMIN; using STG::PARSER::CHG_ADMIN; +const char * GET_ADMINS::tag = "GetAdmins"; +const char * ADD_ADMIN::tag = "AddAdmin"; +const char * DEL_ADMIN::tag = "DelAdmin"; +const char * CHG_ADMIN::tag = "ChgAdmin"; + void GET_ADMINS::CreateAnswer() { const PRIV * priv = m_currAdmin.GetPriv(); @@ -40,9 +44,7 @@ void GET_ADMINS::CreateAnswer() return; } - m_answer.clear(); - - m_answer += GetOpenTag(); + m_answer = ""; ADMIN_CONF ac; int h = m_admins.OpenSearch(); @@ -58,7 +60,7 @@ void GET_ADMINS::CreateAnswer() m_answer += ""; } m_admins.CloseSearch(h); - m_answer += GetCloseTag(); + m_answer += ""; } int DEL_ADMIN::Start(void *, const char * el, const char ** attr)