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:
parent
d7f529bb0a
commit
1ee46da2b9
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -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") {
|
||||
|
|
Loading…
Add table
Reference in a new issue