mirror of
https://gitlab.com/niansa/SomeBot.git
synced 2025-03-06 20:48:26 +01:00
Fixed accidental revertion
This commit is contained in:
parent
7df9b738ff
commit
de7a101a21
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -303,7 +303,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