]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp
Added "done" signature for parsers.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_users.cpp
index cd66ec9e037741a95368ceb03f9512acb9cc4e82..67e2c6996a07dd840cec07164d002945241a1f49 100644 (file)
@@ -682,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;
@@ -731,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;
 }