1
0

Call HOOK_EXECUTE_COMMAND even for unknown console commands.

This allows plugins such as Aliases to intercept even unknown commands.
This commit is contained in:
Mattes D
2015-05-10 21:46:25 +02:00
parent b356419a07
commit 6c53abed23
3 changed files with 14 additions and 3 deletions

View File

@@ -1750,6 +1750,8 @@ bool cPluginManager::ExecuteConsoleCommand(const AStringVector & a_Split, cComma
if (cmd == m_ConsoleCommands.end())
{
// Command not found
// Still notify the plugins (so that plugins such as Aliases can intercept unknown commands):
CallHookExecuteCommand(nullptr, a_Split, a_Command);
return false;
}