fix(Chat): session null check for isavailable (#10613)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
parent
27df910cb7
commit
7eec7486e9
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ char const* ChatHandler::GetAcoreString(uint32 entry) const
|
|||
bool ChatHandler::IsAvailable(uint32 securityLevel) const
|
||||
{
|
||||
// check security level only for simple command (without child commands)
|
||||
return m_session->GetSecurity() >= AccountTypes(securityLevel);
|
||||
return IsConsole() ? true : m_session->GetSecurity() >= AccountTypes(securityLevel);
|
||||
}
|
||||
|
||||
bool ChatHandler::HasLowerSecurity(Player* target, ObjectGuid guid, bool strong)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue