mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
* Fix World::SendGlobalGMMessage, only send packet to connections with appropriate security level
--HG-- branch : trunk
This commit is contained in:
@@ -2663,7 +2663,7 @@ void World::SendGlobalGMMessage(WorldPacket *packet, WorldSession *self, uint32
|
||||
itr->second->GetPlayer() &&
|
||||
itr->second->GetPlayer()->IsInWorld() &&
|
||||
itr->second != self &&
|
||||
itr->second->GetSecurity() &&
|
||||
itr->second->GetSecurity() > SEC_PLAYER &&
|
||||
(team == 0 || itr->second->GetPlayer()->GetTeam() == team) )
|
||||
{
|
||||
itr->second->SendPacket(packet);
|
||||
|
||||
Reference in New Issue
Block a user