* Fix World::SendGlobalGMMessage, only send packet to connections with appropriate security level

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-06-08 16:25:07 +02:00
parent ab9692f52e
commit 06db83ab49

View File

@@ -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);