fix(Core/Guild): prevent join multiple guilds exploit (#7631)

This commit is contained in:
IntelligentQuantum
2021-09-09 14:18:58 +04:30
committed by GitHub
parent a314d6091a
commit 790030810b

View File

@@ -77,6 +77,11 @@ void WorldSession::HandleGuildDeclineOpcode(WorldPacket& /*recvPacket*/)
{
LOG_DEBUG("guild", "CMSG_GUILD_DECLINE [%s]", GetPlayerInfo().c_str());
if (GetPlayer()->GetGuild())
{
return;
}
GetPlayer()->SetGuildIdInvited(0);
GetPlayer()->SetInGuild(0);
}