]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_admins.cpp
Ticket 37. TIMEZONE fixed to TIMESTAMP for change_policy_timeout in
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_admins.cpp
index d9b6cfc9054adae2797fcdbaa1f7c76b44a0e4cf..0db867bb3e680e1132e59a7c7a1aaaac29a0891f 100644 (file)
@@ -22,7 +22,6 @@
 #include "parser_admins.h"
 
 #include "stg/admins.h"
-#include "stg/common.h"
 
 #include <strings.h> // strcasecmp
 
@@ -45,9 +44,7 @@ void GET_ADMINS::CreateAnswer()
         return;
     }
 
-    m_answer.clear();
-
-    m_answer += GetOpenTag();
+    m_answer = "<Admins>";
     ADMIN_CONF ac;
     int h = m_admins.OpenSearch();
 
@@ -63,7 +60,7 @@ void GET_ADMINS::CreateAnswer()
         m_answer += "<admin login=\"" + ac.login + "\" priv=\"" + x2str(p) + "\"/>";
     }
     m_admins.CloseSearch(h);
-    m_answer += GetCloseTag();
+    m_answer += "</Admins>";
 }
 
 int DEL_ADMIN::Start(void *, const char * el, const char ** attr)