summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index b94f1de16..821aceedd 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -8080,6 +8080,12 @@ static char *complete_queue(const char *line, const char *word, int pos, int sta
}
ao2_iterator_destroy(&queue_iter);
+ /* Pretend "rules" is always at the end of the queues list since it is
+ * an alternate command that should be tab-completable */
+ if (!ret && which == state && !wordlen) {
+ ret = ast_strdup("rules");
+ }
+
return ret;
}