diff --git a/src/server/game/Chat/Channels/Channel.cpp b/src/server/game/Chat/Channels/Channel.cpp index e818508ed..b07223030 100644 --- a/src/server/game/Chat/Channels/Channel.cpp +++ b/src/server/game/Chat/Channels/Channel.cpp @@ -1230,8 +1230,8 @@ void Channel::ToggleModeration(Player* player) return; } - const uint32 level = sWorld->getIntConfig(CONFIG_GM_LEVEL_CHANNEL_MODERATION); - const bool gm = (level && player->GetSession()->GetSecurity() >= level); + const AccountTypes level = static_cast(sWorld->getIntConfig(CONFIG_GM_LEVEL_CHANNEL_MODERATION)); + const bool gm = (player->GetSession()->GetSecurity() >= level); if (!playersStore[guid].IsModerator() && !gm) {