summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/console_cmds.cpp1
-rw-r--r--src/console_internal.h1
2 files changed, 2 insertions, 0 deletions
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 */