Skip to content

Commit 23dadff

Browse files
committed
Fixed #9166 (Console displays an error message when pressing the key of a disabled MTA control)
1 parent 2d69eb4 commit 23dadff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/core/CCommands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ bool CCommands::Execute(const char* szCommand, const char* szParametersIn, bool
207207

208208
// Unknown command
209209
val = _("Unknown command or cvar: ") + szCommand;
210-
if (!bIsScriptedBind && !bIsNickCommand)
210+
if (!bIsScriptedBind && !bIsNickCommand && pEntry == nullptr)
211211
CCore::GetSingleton().GetConsole()->Print(val.c_str());
212212
return false;
213213
}

0 commit comments

Comments
 (0)