]> git.stg.codes - stg.git/commitdiff
Correcting error data transfer in method GetParamValue
authorNaffanya <naffanya@naffanya.(none)>
Tue, 12 Nov 2013 16:31:13 +0000 (18:31 +0200)
committerNaffanya <naffanya@naffanya.(none)>
Tue, 12 Nov 2013 16:31:13 +0000 (18:31 +0200)
include/stg/user_property.h
projects/stargazer/user_impl.cpp

index 567df9fa0d27164f047b0e887c6a19756b78f6f1..474eba6a08305d4128d0ae42896b018e265f7a39 100644 (file)
@@ -26,6 +26,7 @@ $Author: faust $
 
 extern volatile time_t stgTime;
 //-----------------------------------------------------------------------------
+//template<typename varT>
 class USER_PROPERTY_BASE {
 public:
     virtual std::string ToString() const = 0;
@@ -123,7 +124,7 @@ private:
     USER_STAT stat;
     USER_CONF conf;
 
-    std::map<std::string, USER_PROPERTY_BASE *> & properties;
+    std::map<std::string, USER_PROPERTY_BASE*> & properties;
 public:
     USER_PROPERTIES(const std::string & sd);
 
index 35ec6efb5aa0c28108239af668077de1add91821..08087883a9fb0e94805413d2f922bac3ee15882d 100644 (file)
@@ -1482,7 +1482,7 @@ if (name == "id")
     }
 if (name == "login")        return login;
 if (name == "ip")           return currIP.ToString();
-return property.GetPropertyValue(&name);
+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();