summaryrefslogtreecommitdiffstats
path: root/src/CRSMConfig.hpp
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2015-09-24 18:04:46 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2015-09-24 18:05:23 +0200
commitdddd1bbf1e8c345a847b226525444abe8743b989 (patch)
tree9f1d8803373114facd62f4c6c4bbc962c96d6fa1 /src/CRSMConfig.hpp
parent8c35ec6fcc101d7b134847e6045774d6dba8de72 (diff)
downloadmanager-dddd1bbf1e8c345a847b226525444abe8743b989.tar.gz
manager-dddd1bbf1e8c345a847b226525444abe8743b989.zip
Use maps to store IRC.Moderators and Clonk.Chat.Moderators together with a custom identifier (to put in logs in the future)
Diffstat (limited to 'src/CRSMConfig.hpp')
-rw-r--r--src/CRSMConfig.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CRSMConfig.hpp b/src/CRSMConfig.hpp
index 7c3ccf1..c6c072d 100644
--- a/src/CRSMConfig.hpp
+++ b/src/CRSMConfig.hpp
@@ -168,7 +168,7 @@ public:
ValueType valueVal;
CRSMConfigValue<ValueType> valueConfigValue(valueVal);
valueConfigValue.setValue(value);
- config[key] = value;
+ config[keyVal] = valueVal;
}
virtual QMap<QString, QString> getValues()
@@ -178,7 +178,7 @@ public:
foreach(KeyType key, config.keys())
{
CRSMConfigValue<KeyType> keyValue(key);
- CRSMConfigValue<KeyType> valValue(config[key]);
+ CRSMConfigValue<ValueType> valValue(config[key]);
ret[keyValue.value()] = valValue.value();
}
@@ -216,7 +216,7 @@ public:
Integer Time = 3;
} AntiFlood;
- List(Integer) Moderators = List(Integer)();
+ Map(Integer, String) Moderators;
Integer RegainAdminTime = 120;
} Chat;
} Clonk;
@@ -244,7 +244,7 @@ public:
String QuitMessage = "Dedicated Clonk server powered by CRSM";
Integer ReconnectDelay = 10;
String ScenListMessage = "A list of available scenarios is available ingame or in a lobby.";
- List(String) Moderators = List(String)();
+ Map(String, String) Moderators;
} IRC;