X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b3139bf3f37b3b0244efea8b4b5e5a7d0bc90095..80270bc96f3fd1d1f14b3ef539b73ad2eb0017de:/projects/stargazer/user_impl.cpp?ds=sidebyside diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 7f6ff352..47f35228 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1511,17 +1511,19 @@ while (it != messages.end()) //----------------------------------------------------------------------------- std::string USER_IMPL::GetParamValue(const std::string & name) const { - if (name == "id") + std::string lowerName = ToLower(name); + if (lowerName == "id") { std::ostringstream stream; stream << id; return stream.str(); } - if (name == "login") return login; - if (name == "currIP") return currIP.ToString(); - if (name == "enabledDirs") return GetEnabledDirs(); - if (property.Exists(name)) - return property.GetPropertyValue(name); + if (lowerName == "login") return login; + if (lowerName == "currip") return currIP.ToString(); + if (lowerName == "enableddirs") return GetEnabledDirs(); + if (lowerName == "tariff") return property.tariffName; + if (property.Exists(lowerName)) + return property.GetPropertyValue(lowerName); else { WriteServLog("User’s parameter '%s' does not exist.", name.c_str());