diff options
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() |