From: Naffanya Date: Mon, 28 Oct 2013 18:10:14 +0000 (+0200) Subject: New error in GetPropertyValue X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/102a98fb1218ebee228837b895d7132e7d2628ec New error in GetPropertyValue --- diff --git a/include/stg/user_property.h b/include/stg/user_property.h index a4547398..567df9fa 100644 --- a/include/stg/user_property.h +++ b/include/stg/user_property.h @@ -386,6 +386,7 @@ else //------------------------------------------------------------------------- //------------------------------------------------------------------------- //------------------------------------------------------------------------- +inline std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const { std::map::iterator it = properties.find(name); diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index b2ac841f..35ec6efb 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1474,15 +1474,15 @@ while (it != messages.end()) //----------------------------------------------------------------------------- std::string USER_IMPL::GetParamValue(const std::string & name) const { - if (name == "id") +if (name == "id") { std::stringstream stream; stream << id; return stream.str();; } - if (name == "login") return login; - if (name == "ip") return currIP.ToString(); - return properties.GetPropertyValue(&name); +if (name == "login") return login; +if (name == "ip") return currIP.ToString(); +return property.GetPropertyValue(&name); //if (name == "freeMb") return property.freeMb.ToString(); //if (name == "passive") return property.passive.ToString(); //if (name == "disabled") return property.disabled.ToString();