aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-09 19:28:48 +0000
committerpabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-09 19:28:48 +0000
commit373c3b2add5f99c13a00db4a927479659f9669d2 (patch)
tree2f25fc59ef0df8576a218abc34899490edb9dd1e
parenta230dcb19b365b19ac35f1a19604f15d08ccb430 (diff)
fix tab-completion for unload command.
(closes issue #17536) Reported by: junky Patches: unload_vs_mod_unload.diff uploaded by junky (license 177) Tested by: pabelanger git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@275290 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/cli.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index d7793ed54..af3a9ee59 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -1235,6 +1235,11 @@ static char *complete_mod_2(const char *line, const char *word, int pos, int sta
return ast_module_helper(line, word, pos, state, 1, 1);
}
+static char *complete_mod_2_nr(const char *line, const char *word, int pos, int state)
+{
+ return ast_module_helper(line, word, pos, state, 1, 0);
+}
+
static char *complete_mod_3_nr(const char *line, const char *word, int pos, int state)
{
return ast_module_helper(line, word, pos, state, 2, 0);
@@ -1439,7 +1444,7 @@ static struct ast_cli_entry cli_module_reload_deprecated = {
static struct ast_cli_entry cli_module_unload_deprecated = {
{ "unload", NULL },
handle_unload_deprecated, NULL,
- NULL, complete_mod_2 };
+ NULL, complete_mod_2_nr };
static struct ast_cli_entry cli_show_uptime_deprecated = {
{ "show", "uptime", NULL },