mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
chore(Core/Account): move AccountMgr::IsGMAccount() to class WorldSession (#17845)
This commit is contained in:
committed by
GitHub
parent
9da7657147
commit
4c94f62144
@@ -175,6 +175,11 @@ WorldSession::~WorldSession()
|
||||
LoginDatabase.Execute("UPDATE account SET online = 0 WHERE id = {};", GetAccountId()); // One-time query
|
||||
}
|
||||
|
||||
bool WorldSession::IsGMAccount() const
|
||||
{
|
||||
return GetSecurity() >= SEC_GAMEMASTER;
|
||||
}
|
||||
|
||||
std::string const& WorldSession::GetPlayerName() const
|
||||
{
|
||||
return _player ? _player->GetName() : DefaultPlayerName;
|
||||
|
||||
Reference in New Issue
Block a user