fix(Core/Chat): correct logic for using guild officer chat (#9535)

This commit is contained in:
Kargatum
2021-12-06 22:29:20 +07:00
committed by GitHub
parent ddd6fd0984
commit 18d5482415

View File

@@ -463,7 +463,7 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
{
if (Guild* guild = sGuildMgr->GetGuildById(GetPlayer()->GetGuildId()))
{
if (sScriptMgr->CanPlayerUseChat(GetPlayer(), type, lang, msg, guild))
if (!sScriptMgr->CanPlayerUseChat(GetPlayer(), type, lang, msg, guild))
{
return;
}