mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
GroupHandler: prevent cheater self-invite (#573)
* GroupHandler: prevent cheater self-invite
Author: billy1arm
From ec0393001f
* 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