summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-05 02:13:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-05 02:13:29 +0300
commitdc706af3765b75330e4e7c557ea3e4cf1f119631 (patch)
tree183a32a615ba1b2d8450474cfc829828bc5831de /src/configmanager.cpp
parent92232a86a44bd31701f0f7957a46f40e89ef4b92 (diff)
downloadplus-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.gz
plus-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.bz2
plus-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.xz
plus-dc706af3765b75330e4e7c557ea3e4cf1f119631.zip
Add option for enable manamarket intergration and support /mail command. (for tmw only).
But because bot limitation, only some players can send mails.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index b0f3a28e2..8e130e315 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -67,6 +67,16 @@ void ConfigManager::initServerConfig(const std::string &serverName)
serverConfig.setDefaultValues(getConfigDefaults());
logger->log("serverConfigPath: " + configPath);
}
+
+ int val = serverConfig.getValue("enableManaMarketBot", -1);
+ if (val == -1)
+ {
+ if (client->isTmw())
+ val = 1;
+ else
+ val = 0;
+ serverConfig.setValue("enableManaMarketBot", val);
+ }
}
void ConfigManager::initConfiguration()