mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
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());
|
||||
|
||||
if (GetPlayer()->GetGuild())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
GetPlayer()->SetGuildIdInvited(0);
|
||||
GetPlayer()->SetInGuild(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user