fix(Core/Chat): correct logic for using guild officer chat (#9535)
This commit is contained in:
@@ -463,7 +463,7 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
|
|||||||
{
|
{
|
||||||
if (Guild* guild = sGuildMgr->GetGuildById(GetPlayer()->GetGuildId()))
|
if (Guild* guild = sGuildMgr->GetGuildById(GetPlayer()->GetGuildId()))
|
||||||
{
|
{
|
||||||
if (sScriptMgr->CanPlayerUseChat(GetPlayer(), type, lang, msg, guild))
|
if (!sScriptMgr->CanPlayerUseChat(GetPlayer(), type, lang, msg, guild))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user