feat(Core/Opcodes): Implement CMSG_CHANNEL_MODERATE (#4021)

* Core/Opcodes: Implement CMSG_CHANNEL_MODERATE

* Cleanup, prettify

* fix build

* whitespaces
This commit is contained in:
FALL1N1
2021-01-18 20:37:50 +02:00
committed by GitHub
parent 72f2a7706e
commit 0181b73bc2
8 changed files with 86 additions and 4 deletions

View File

@@ -368,6 +368,7 @@ enum WorldIntConfigs
CONFIG_GUILD_BANK_TAB_COST_3,
CONFIG_GUILD_BANK_TAB_COST_4,
CONFIG_GUILD_BANK_TAB_COST_5,
CONFIG_GM_LEVEL_CHANNEL_MODERATION,
INT_CONFIG_VALUE_COUNT
};

View File

@@ -1407,6 +1407,8 @@ void World::LoadConfigSettings(bool reload)
m_bool_configs[CONFIG_DEBUG_BATTLEGROUND] = sConfigMgr->GetBoolDefault("Debug.Battleground", false);
m_bool_configs[CONFIG_DEBUG_ARENA] = sConfigMgr->GetBoolDefault("Debug.Arena", false);
m_int_configs[CONFIG_GM_LEVEL_CHANNEL_MODERATION] = sConfigMgr->GetIntDefault("Channel.ModerationGMLevel", 1);
// call ScriptMgr if we're reloading the configuration
sScriptMgr->OnAfterConfigLoad(reload);
}