Core/Guild: Fixed possible guild exploit (#28577)

* Core/Guild: Fixed possible guild exploit

* Core/Guild: Do not process HandleGuildDeclineOpcode if player is in guild
This commit is contained in:
robinsch
2022-12-05 10:16:38 +01:00
committed by GitHub
parent 297541e9c9
commit 036c72327f

View File

@@ -69,9 +69,10 @@ void WorldSession::HandleGuildAcceptOpcode(WorldPackets::Guild::AcceptGuildInvit
void WorldSession::HandleGuildDeclineOpcode(WorldPackets::Guild::GuildDeclineInvitation& /*decline*/)
{
TC_LOG_DEBUG("guild", "CMSG_GUILD_DECLINE [%s]", GetPlayerInfo().c_str());
if (GetPlayer()->GetGuildId())
return;
GetPlayer()->SetGuildIdInvited(0);
GetPlayer()->SetInGuild(0);
}
void WorldSession::HandleGuildInfoOpcode(WorldPackets::Guild::GuildGetInfo& /*packet*/)