]> git.stg.codes - stg.git/commitdiff
Added result and reason attributes for <user>.
authorMaxim Mamontov <faust.madf@gmail.com>
Fri, 23 Aug 2013 15:57:37 +0000 (18:57 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Fri, 23 Aug 2013 15:57:37 +0000 (18:57 +0300)
projects/stargazer/plugins/configuration/sgconfig/parser.cpp

index 601b34bc46d8bec14b6a56f41c5cc0b287416fcf..7deab3d0fb5c83c82677f3536f464521d8bde933 100644 (file)
@@ -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;
     }