when displaying the list of registered music on hold classes, only show

the format if the mode is not "files", because the field has no meaning
in that case


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-05-19 03:11:35 +00:00
parent eeb01cda95
commit 53df01c9cc

View File

@@ -1137,6 +1137,7 @@ static int moh_classes_show(int fd, int argc, char *argv[])
ast_cli(fd, "\tDirectory: %s\n", S_OR(class->dir, "<none>"));
if (ast_test_flag(class, MOH_CUSTOM))
ast_cli(fd, "\tApplication: %s\n", S_OR(class->args, "<none>"));
if (strcasecmp(class->mode, "files"))
ast_cli(fd, "\tFormat: %s\n", ast_getformatname(class->format));
}
AST_LIST_UNLOCK(&mohclasses);