diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-05 02:13:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-05 02:13:29 +0300 |
commit | dc706af3765b75330e4e7c557ea3e4cf1f119631 (patch) | |
tree | 183a32a615ba1b2d8450474cfc829828bc5831de /src/configmanager.cpp | |
parent | 92232a86a44bd31701f0f7957a46f40e89ef4b92 (diff) | |
download | mv-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.gz mv-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.bz2 mv-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.xz mv-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.cpp | 10 |
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() |