From: Maxim Mamontov <faust.madf@gmail.com>
Date: Fri, 23 Aug 2013 15:57:37 +0000 (+0300)
Subject: Added result and reason attributes for <user>.
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a1cb414b44cb8ef66d2ba4e5a99c0f5c2d123f53?hp=cd64751cac4c56591bee9b0a9c2a626ce40e67db

Added result and reason attributes for <user>.
---

diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp
index 601b34bc..7deab3d0 100644
--- a/projects/stargazer/plugins/configuration/sgconfig/parser.cpp
+++ b/projects/stargazer/plugins/configuration/sgconfig/parser.cpp
@@ -133,8 +133,7 @@ answerList->erase(answerList->begin(), answerList->end());
 
 if (users->FindByName(login, &u))
     {
-    s = "<user result=\"error\"/>";
-    answerList->push_back(s);
+    answerList->push_back("<user result=\"error\" reason=\"User not found.\"/>");
     return;
     }