diff options
author | nicm <nicm> | 2020-12-28 09:40:27 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-12-28 09:40:27 +0000 |
commit | a98ee00dd988b813b0b0cba1af939978505936b7 (patch) | |
tree | 998963322755d1a8a26d38aaadd77b4c99d1ccfb | |
parent | c68baaad98807963da954bc1aa77c22f2df05ff0 (diff) | |
download | rtmux-a98ee00dd988b813b0b0cba1af939978505936b7.tar.gz rtmux-a98ee00dd988b813b0b0cba1af939978505936b7.tar.bz2 rtmux-a98ee00dd988b813b0b0cba1af939978505936b7.zip |
Do not list user options with show-hooks.
-rw-r--r-- | cmd-show-options.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c index 8e70eaa9..a9c5bd2a 100644 --- a/cmd-show-options.c +++ b/cmd-show-options.c @@ -201,11 +201,13 @@ cmd_show_options_all(struct cmd *self, struct cmdq_item *item, int scope, u_int idx; int parent; - o = options_first(oo); - while (o != NULL) { - if (options_table_entry(o) == NULL) - cmd_show_options_print(self, item, o, -1, 0); - o = options_next(o); + if (cmd_get_entry(self) != &cmd_show_hooks_entry) { + o = options_first(oo); + while (o != NULL) { + if (options_table_entry(o) == NULL) + cmd_show_options_print(self, item, o, -1, 0); + o = options_next(o); + } } for (oe = options_table; oe->name != NULL; oe++) { if (~oe->scope & scope) |