diff --git a/src/helper/command.c b/src/helper/command.c index a4ac4af00..5ac5c3015 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -237,6 +237,8 @@ command_t* register_command(command_context_t *context, command_t *parent, char } } + command_helptext_add(command_name_list(c), help); + /* just a placeholder, no handler */ if (c->handler == NULL) return c; @@ -257,8 +259,6 @@ command_t* register_command(command_context_t *context, command_t *parent, char free((void *)full_name); - command_helptext_add(command_name_list(c), help); - return c; }