mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Guilds: Disallow sending invite to people already in a guild
- In the case this would happen the player was able to join two (or more) guilds and bug themself out heavily - If the player declined the invite, they instead were removed from their current guild until restart, this allowed the above to loop endlessly
This commit is contained in:
@@ -1602,11 +1602,11 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
|
||||
}
|
||||
|
||||
// Invited player cannot be in another guild
|
||||
/*if (pInvitee->GetGuildId())
|
||||
if (pInvitee->GetGuildId())
|
||||
{
|
||||
SendCommandResult(session, GUILD_COMMAND_INVITE_PLAYER, ERR_ALREADY_IN_GUILD_S, name);
|
||||
return;
|
||||
}*/
|
||||
}
|
||||
|
||||
// Invited player cannot be invited
|
||||
if (pInvitee->GetGuildIdInvited())
|
||||
|
||||
Reference in New Issue
Block a user