X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4e101b93cafd0881518fc2be53c051d47d374d93..9b8f74aec65e4e61ae82e14e6cb439da736ee808:/projects/stargazer/user_impl.cpp diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index d3f78bcc..b2ac841f 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1474,7 +1474,15 @@ while (it != messages.end()) //----------------------------------------------------------------------------- std::string USER_IMPL::GetParamValue(const std::string & name) const { - return properties.GetPropertyValue(&name); + 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 == "freeMb") return property.freeMb.ToString(); //if (name == "passive") return property.passive.ToString(); //if (name == "disabled") return property.disabled.ToString(); @@ -1499,14 +1507,6 @@ std::string USER_IMPL::GetParamValue(const std::string & name) const //if (name == "userdata8") return property.userdata8; //if (name == "userdata9") return property.userdata9; //if (name == "cash") return property.cash.ToString(); -//if (name == "id") -// { -// std::stringstream stream; -// stream << id; -// return stream.str();; -// } -//if (name == "login") return login; -//if (name == "ip") return currIP.ToString(); //return ""; } //-----------------------------------------------------------------------------