]> git.stg.codes - stg.git/blobdiff - projects/stargazer/settings_impl.cpp
Ticket. GetChangePolicy() function added.
[stg.git] / projects / stargazer / settings_impl.cpp
index ca8045b89014860728dc33c75a64f557b5c85474..35a259af0929ca8d4cb33236cba75edff4f559e3 100644 (file)
@@ -88,8 +88,8 @@ SETTINGS_IMPL::SETTINGS_IMPL(const SETTINGS_IMPL & rval)
       dayResetTraff(rval.dayResetTraff),
       spreadFee(rval.spreadFee),
       freeMbAllowInet(rval.freeMbAllowInet),
-      stopOnError(rval.stopOnError),
       dayFeeIsLastDay(rval.dayFeeIsLastDay),
+      stopOnError(rval.stopOnError),
       writeFreeMbTraffCost(rval.writeFreeMbTraffCost),
       showFeeInCash(rval.showFeeInCash),
       messageTimeout(rval.messageTimeout),
@@ -297,6 +297,15 @@ while (node)
             }
         }
 
+    if (strcasecmp(node->getName(), "StopOnError") == 0)
+        {
+        if (ParseYesNo(node->getValue(0), &stopOnError) != 0)
+            {
+            strError = "Incorrect StopOnError value: \'" + std::string(node->getValue(0)) + "\'";
+            return -1;
+            }
+        }
+
     if (strcasecmp(node->getName(), "WriteFreeMbTraffCost") == 0)
         {
         if (ParseYesNo(node->getValue(0), &writeFreeMbTraffCost) != 0)