mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 05:36:23 +00:00
chore(Core/Player): codestyle (#17841)
This commit is contained in:
@@ -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*/)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user