From c311f18ba40f0cbe749f2881caf9998f76e5c006 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 27 Oct 2010 20:52:43 +0000 Subject: (svn r21050) -Fix (r20515): ignore underscores as well for help messages --- src/console_cmds.cpp | 1 + src/console_internal.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 8f976b48f..89680fde5 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -1338,6 +1338,7 @@ DEF_CONSOLE_CMD(ConHelp) const IConsoleCmd *cmd; const IConsoleAlias *alias; + RemoveUnderscores(argv[1]); cmd = IConsoleCmdGet(argv[1]); if (cmd != NULL) { cmd->proc(0, NULL); diff --git a/src/console_internal.h b/src/console_internal.h index b4d70fa2e..6fe2a4e1d 100644 --- a/src/console_internal.h +++ b/src/console_internal.h @@ -83,5 +83,6 @@ bool GetArgumentInteger(uint32 *value, const char *arg); void IConsoleGUIInit(); void IConsoleGUIFree(); void IConsoleGUIPrint(ConsoleColour colour_code, char *string); +char *RemoveUnderscores(char *name); #endif /* CONSOLE_INTERNAL_H */ -- cgit v1.2.3-54-g00ecf