fix(Core/Guild): prevent join multiple guilds exploit (#7631)
This commit is contained in:
parent
a314d6091a
commit
790030810b
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue