fix(Core/Guild): prevent join multiple guilds exploit (#7631)
This commit is contained in:
committed by
GitHub
parent
a314d6091a
commit
790030810b
@@ -77,6 +77,11 @@ void WorldSession::HandleGuildDeclineOpcode(WorldPacket& /*recvPacket*/)
|
|||||||
{
|
{
|
||||||
LOG_DEBUG("guild", "CMSG_GUILD_DECLINE [%s]", GetPlayerInfo().c_str());
|
LOG_DEBUG("guild", "CMSG_GUILD_DECLINE [%s]", GetPlayerInfo().c_str());
|
||||||
|
|
||||||
|
if (GetPlayer()->GetGuild())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GetPlayer()->SetGuildIdInvited(0);
|
GetPlayer()->SetGuildIdInvited(0);
|
||||||
GetPlayer()->SetInGuild(0);
|
GetPlayer()->SetInGuild(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user