]> git.stg.codes - stg.git/blobdiff - projects/stargazer/user_impl.cpp
Correction of the container map
[stg.git] / projects / stargazer / user_impl.cpp
index d3f78bcc55044af0ff976fc8529ba274bb32aada..b2ac841f96c5d43d4221fe319985a1d757d54a4b 100644 (file)
@@ -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 "";
 }
 //-----------------------------------------------------------------------------