Core/Channels: Players should not be able to invite non-visible GMs to channels

closes #5467
This commit is contained in:
Subv
2012-02-27 17:50:21 -05:00
parent dc55d9ed13
commit 2c23fdf912
+1 -1
View File
@@ -671,7 +671,7 @@ void Channel::Invite(uint64 p, const char *newname)
}
Player* newp = sObjectAccessor->FindPlayerByName(newname);
if (!newp)
if (!newp || !newp->isGMVisible())
{
WorldPacket data;
MakePlayerNotFound(&data, newname);