aboutsummaryrefslogtreecommitdiff
path: root/src/con_.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/con_.c')
-rw-r--r--src/con_.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/con_.c b/src/con_.c
index 7552816..8359482 100644
--- a/src/con_.c
+++ b/src/con_.c
@@ -154,6 +154,9 @@ static const char *VCALLCONV GetName(struct con_cmdbase *this) {
return this->name;
}
static const char *VCALLCONV GetHelpText(struct con_cmdbase *this) {
+ if_cold (this->flags & (CON_INIT_HIDDEN | _CON_NE_HIDDEN)) {
+ return this->help - 18; // see _DEF_* macros in con_.h
+ }
return this->help;
}
static bool VCALLCONV IsRegistered(struct con_cmdbase *this) {