it != rsSettings.GetUserParams().end();
++it)
{
- std::string parameter;
- if (*it == "tariffName")
- parameter = rsu.user->GetParamValue("tariff");
- else
- parameter = rsu.user->GetParamValue(*it);
+ std::string parameter(rsu.user->GetParamValue(it->c_str()));
if (params.length() + parameter.length() > RS_PARAMS_LEN - 1)
{
logger("Script params string length %d exceeds the limit of %d symbols.", params.length() + parameter.length(), RS_PARAMS_LEN);
if (lowerName == "login") return login;
if (lowerName == "currip") return currIP.ToString();
if (lowerName == "enableddirs") return GetEnabledDirs();
+ if (lowerName == "tariffname") return property.GetPropertyValue("tarrif");
if (property.Exists(lowerName))
return property.GetPropertyValue(lowerName);
else
disabledDetailStat(conf.disabledDetailStat, "DisabledDetailStat", false, false, GetStgLogger(), sd, properties),
alwaysOnline(conf.alwaysOnline, "alwaysOnline", false, false, GetStgLogger(), sd, properties),
tariffName (conf.tariffName, "tariff", false, false, GetStgLogger(), sd, properties),
- nextTariff (conf.nextTariff, "next tariff", false, false, GetStgLogger(), sd, properties),
+ nextTariff (conf.nextTariff, "nextTariff", false, false, GetStgLogger(), sd, properties),
address (conf.address, "address", false, false, GetStgLogger(), sd, properties),
note (conf.note, "note", false, false, GetStgLogger(), sd, properties),
group (conf.group, "group", false, false, GetStgLogger(), sd, properties),