Permalink
Browse files

Fixed #9166 (Console displays an error message when pressing the key …

…of a disabled MTA control)
  • Loading branch information...
ccw808 committed May 10, 2018
1 parent 2d69eb4 commit 23dadffbf9d93cf94e22c6de0763f59d9042fe68
Showing with 1 addition and 1 deletion.
  1. +1 −1 Client/core/CCommands.cpp
@@ -207,7 +207,7 @@ bool CCommands::Execute(const char* szCommand, const char* szParametersIn, bool
// Unknown command
val = _("Unknown command or cvar: ") + szCommand;
if (!bIsScriptedBind && !bIsNickCommand)
if (!bIsScriptedBind && !bIsNickCommand && pEntry == nullptr)
CCore::GetSingleton().GetConsole()->Print(val.c_str());
return false;
}

0 comments on commit 23dadff

Please sign in to comment.