]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp
Portable count.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_users.cpp
index f596bfbfd9f0fc87d4a6109ccb3ed8b4170f73ee..67e2c6996a07dd840cec07164d002945241a1f49 100644 (file)
@@ -26,7 +26,6 @@
 #include "stg/user_property.h"
 #include "stg/user_conf.h"
 #include "stg/user_stat.h"
-#include "stg/common.h"
 
 #include <cstdio>
 #include <cassert>
@@ -683,6 +682,8 @@ int DEL_USER::End(void *, const char *el)
         if (!res)
             m_users.Del(u->GetLogin(), &m_currAdmin);
 
+        m_done = true;
+
         return 0;
     }
     return -1;
@@ -732,7 +733,10 @@ int CHECK_USER::Start(void *, const char *el, const char **attr)
 int CHECK_USER::End(void *, const char *el)
 {
     if (strcasecmp(el, m_tag.c_str()) == 0)
+    {
+        m_done = true;
         return 0;
+    }
     return -1;
 }