diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-02-08 21:26:32 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-02-08 21:26:32 +0000 |
commit | 1ec8cb41a8170201f45ff0efe65e96aa97e0b8d3 (patch) | |
tree | 425b3dafd75451669e2311d091127fe03d3c9693 /apps/app_playback.c | |
parent | 52595c5d30f311b4e8d1c089577b8679adde232e (diff) |
Merge changes from team/mvanbaak/cli-command-audit
(closes issue #8925)
About a year ago, as Leif Madsen and Jim van Meggelen were going over the CLI
commands in Asterisk 1.4 for the next version of their book, they documented
a lot of inconsistencies. This set of changes addresses all of these issues
and has been reviewed by Leif.
While this does introduce even more changes to the CLI command structure, it
makes everything consistent, which is the most important thing.
Thanks to all that helped with this one!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_playback.c')
-rw-r--r-- | apps/app_playback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_playback.c b/apps/app_playback.c index 21b3ab3eb..b7409957a 100644 --- a/apps/app_playback.c +++ b/apps/app_playback.c @@ -374,7 +374,7 @@ static char *__say_cli_init(struct ast_cli_entry *e, int cmd, struct ast_cli_arg if (a->argc == 2) { ast_cli(a->fd, "say mode is [%s]\n", old_mode); return CLI_SUCCESS; - } else if (a->argc != 3) + } else if (a->argc != e->args) return CLI_SHOWUSAGE; mode = a->argv[2]; if (!strcmp(mode, old_mode)) |