mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
GroupHandler: prevent cheater self-invite (#573)
* GroupHandler: prevent cheater self-invite Author: billy1arm From https://github.com/mangosone/server/commit/ec0393001f58c70764f3a807dba16f9e28d664ad * Fixed indentation
This commit is contained in:
@@ -66,8 +66,8 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket& recvData)
|
||||
|
||||
Player* player = ObjectAccessor::FindPlayerByName(membername, false);
|
||||
|
||||
// no player
|
||||
if (!player)
|
||||
// no player or cheat self-invite
|
||||
if (!player || player == GetPlayer())
|
||||
{
|
||||
SendPartyResult(PARTY_OP_INVITE, membername, ERR_BAD_PLAYER_NAME_S);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user