mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 16:43:47 +00:00
feat(Core/Scripting): Add hook during command security evaluation. (#20564)
This commit is contained in:
@@ -506,6 +506,9 @@ bool Acore::Impl::ChatCommands::ChatCommandNode::IsInvokerVisible(ChatHandler co
|
||||
if (!_invoker)
|
||||
return false;
|
||||
|
||||
if (!sScriptMgr->OnBeforeIsInvokerVisible(_name, _permission, who))
|
||||
return true;
|
||||
|
||||
if (who.IsConsole() && (_permission.AllowConsole == Acore::ChatCommands::Console::No))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user