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:
DJScias
2015-05-30 03:23:05 +02:00
parent 675ad4438b
commit e9c9bee8b1

View File

@@ -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())