chore(Core/Player): codestyle (#17841)

This commit is contained in:
Kitzunu
2023-11-24 16:52:36 +01:00
committed by GitHub
parent 86d704a514
commit 23606bcba0
2 changed files with 3 additions and 3 deletions

View File

@@ -938,9 +938,9 @@ void Channel::SendToAllWatching(WorldPacket* data)
(*i)->GetSession()->SendPacket(data);
}
bool Channel::ShouldAnnouncePlayer(const Player* pPlayer) const
bool Channel::ShouldAnnouncePlayer(Player const* player) const
{
return !(AccountMgr::IsGMAccount(pPlayer->GetSession()->GetSecurity()) && sWorld->getBoolConfig(CONFIG_SILENTLY_GM_JOIN_TO_CHANNEL));
return !(AccountMgr::IsGMAccount(player->GetSession()->GetSecurity()) && sWorld->getBoolConfig(CONFIG_SILENTLY_GM_JOIN_TO_CHANNEL));
}
void Channel::Voice(ObjectGuid /*guid1*/, ObjectGuid /*guid2*/)

View File

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