]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parsers/chg_user.cpp
Fixed processing of coma-separated lists.
[stg.git] / stglibs / srvconf.lib / parsers / chg_user.cpp
index 74247c3161d0ff6a714b671d5ca265c334690864..01361d08fb076312837002b95675c3204d4ae096 100644 (file)
@@ -102,7 +102,7 @@ appendResetable(stream, "ip", conf.ips); // TODO: ip -> ips
 if (!conf.nextTariff.empty())
     stream << "<tariff delayed=\"" << conf.nextTariff.data() << "\"/>";
 else if (!conf.tariffName.empty())
-    stream << "<tariff now=\"" << conf.nextTariff.data() << "\"/>";
+    stream << "<tariff now=\"" << conf.tariffName.data() << "\"/>";
 
 appendResetable(stream, "note", MaybeEncode(conf.note));
 appendResetable(stream, "name", MaybeEncode(conf.realName)); // TODO: name -> realName