1
0
Fork 0
mirror of https://gitlab.com/niansa/SomeBot.git synced 2025-03-06 20:48:26 +01:00

Fixed config reader issue

This commit is contained in:
niansa 2022-11-02 15:04:22 +01:00
parent d7f529bb0a
commit 1ee46da2b9

View file

@ -304,7 +304,7 @@ int main(int argc, char **argv) {
bot.config.modules_mode = Bot::Config::ModulesMode::whitelist;
}
if (config_entry.contains("modules_mode")) {
const std::string& mode = config_entry;
const std::string& mode = config_entry["modules_mode"];
if (mode == "blacklist") {
bot.config.modules_mode = Bot::Config::ModulesMode::blacklist;
} else if (mode == "whitelist") {