[asterisk-commits] kmoore: branch 1.8 r372444 - /branches/1.8/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 6 09:28:40 CDT 2012
Author: kmoore
Date: Thu Sep 6 09:28:33 2012
New Revision: 372444
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=372444
Log:
Ensure "rules" is tab-completable for "queue show"
Previously, tabbing at the end of "queue show" produced a list of
available queues about which information could be shown, but did not
include an alternative command, "rules", to access information about
queue rules. The "rules" item should now be shown in the list of
tab-completable items.
(closes issue AST-958)
Reported-by: John Bigelow
Modified:
branches/1.8/apps/app_queue.c
Modified: branches/1.8/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_queue.c?view=diff&rev=372444&r1=372443&r2=372444
==============================================================================
--- branches/1.8/apps/app_queue.c (original)
+++ branches/1.8/apps/app_queue.c Thu Sep 6 09:28:33 2012
@@ -7131,6 +7131,12 @@
}
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;
}
More information about the asterisk-commits
mailing list