From e9c9bee8b10c8bc012891cdb90dc703a365e61df Mon Sep 17 00:00:00 2001 From: DJScias Date: Sat, 30 May 2015 03:23:05 +0200 Subject: 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 --- src/server/game/Guilds/Guild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp index 0225c9405ce..d4c6a0a680d 100644 --- a/src/server/game/Guilds/Guild.cpp +++ b/src/server/game/Guilds/Guild.cpp @@ -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()) -- cgit v1.2.3