Merge pull request #14803 from DJScias/guildinvitefix

Core/Guilds: Disallow sending invite to people already in a guild
This commit is contained in:
Shauren
2015-05-30 12:09:28 +02:00

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