[asterisk-commits] mmichelson: branch mmichelson/queue-reset r167163 - /team/mmichelson/queue-re...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Jan 4 13:45:29 CST 2009
Author: mmichelson
Date: Sun Jan 4 13:45:28 2009
New Revision: 167163
URL: http://svn.digium.com/view/asterisk?view=rev&rev=167163
Log:
Fix some bugs related to specifying multiple queues
Modified:
team/mmichelson/queue-reset/apps/app_queue.c
Modified: team/mmichelson/queue-reset/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/team/mmichelson/queue-reset/apps/app_queue.c?view=diff&rev=167163&r1=167162&r2=167163
==============================================================================
--- team/mmichelson/queue-reset/apps/app_queue.c (original)
+++ team/mmichelson/queue-reset/apps/app_queue.c Sun Jan 4 13:45:28 2009
@@ -6785,14 +6785,14 @@
"specified.\n";
return NULL;
case CLI_GENERATE:
- if (a->pos == 3) {
+ if (a->pos >= 3) {
return complete_queue(a->line, a->word, a->pos, a->n);
} else {
return NULL;
}
}
- if (a->argc < 3 || a->argc > 4) {
+ if (a->argc < 3) {
return CLI_SHOWUSAGE;
}
@@ -6836,14 +6836,14 @@
"other queues to be affected\n";
return NULL;
case CLI_GENERATE:
- if (a->pos == 3) {
+ if (a->pos >= 3) {
return complete_queue(a->line, a->word, a->pos, a->n);
} else {
return NULL;
}
}
- if (a->argc < 3 || a->argc > 4)
+ if (a->argc < 3)
return CLI_SHOWUSAGE;
if (!strcasecmp(a->argv[2], "rules")) {
More information about the asterisk-commits
mailing list