chore(Core/Chat): add Channel::ShouldAnnouncePlayer() method (#17819)

This commit is contained in:
Tristan 'Natrist' Cormier
2023-11-24 07:03:30 -05:00
committed by GitHub
parent d4931755ea
commit 86d704a514
2 changed files with 13 additions and 17 deletions

View File

@@ -271,6 +271,8 @@ private:
void SendToOne(WorldPacket* data, ObjectGuid who);
void SendToAllWatching(WorldPacket* data);
bool ShouldAnnouncePlayer(const Player* pPlayer) const;
[[nodiscard]] bool IsOn(ObjectGuid who) const { return playersStore.find(who) != playersStore.end(); }
[[nodiscard]] bool IsBanned(ObjectGuid guid) const;