add option to disable chat commands

This commit is contained in:
Martin Michelsen
2024-03-04 22:48:05 -08:00
parent b0b3bb6140
commit 31005ec39d
9 changed files with 57 additions and 26 deletions
+1
View File
@@ -886,6 +886,7 @@ void ServerState::load_config_early() {
this->allow_dc_pc_games = this->config_json->get_bool("AllowDCPCGames", true);
this->allow_gc_xb_games = this->config_json->get_bool("AllowGCXBGames", true);
this->enable_chat_commands = this->config_json->get_bool("EnableChatCommands", true);
for (auto& order : this->public_lobby_search_orders) {
order.clear();