mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
add 'dontwarn' option to asterisk.conf to appease the whining masses :p (bug #4320)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5723 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
frame.c
2
frame.c
@@ -578,7 +578,7 @@ static int show_codecs(int fd, int argc, char *argv[])
|
||||
if ((argc < 2) || (argc > 3))
|
||||
return RESULT_SHOWUSAGE;
|
||||
|
||||
if (getenv("I_AM_NOT_AN_IDIOT") == NULL)
|
||||
if (!option_dontwarn)
|
||||
ast_cli(fd, "Disclaimer: this command is for informational purposes only.\n"
|
||||
"\tIt does not indicate anything about your configuration.\n");
|
||||
|
||||
|
Reference in New Issue
Block a user