mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
Merge pull request #14803 from DJScias/guildinvitefix
Core/Guilds: Disallow sending invite to people already in a guild
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