Core/Channels: Players should not be able to invite non-visible GMs to channels
closes #5467
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user