diff options
author | Mark Spencer <markster@digium.com> | 2003-08-21 02:34:03 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-21 02:34:03 +0000 |
commit | 7c7806d7681489c69da80d34662dd7eeec9635f6 (patch) | |
tree | 057ab8c59b678df983dca5c30455546dc7cb5c37 /asterisk.c | |
parent | b79a2371865ce243640ada48cde88805be48c751 (diff) |
don't tell people to exit/quit when it's not a valid command anymore
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/asterisk.c b/asterisk.c index 8813c0722..2b3f498de 100755 --- a/asterisk.c +++ b/asterisk.c @@ -1448,8 +1448,12 @@ int main(int argc, char *argv[]) buf[strlen(buf)-1] = '\0'; consolehandler((char *)buf); - } else - ast_cli(STDOUT_FILENO, "\nUse EXIT or QUIT to exist, or STOP NOW to shutdown Asterisk\n"); + } else { + if (option_remote) + ast_cli(STDOUT_FILENO, "\nUse EXIT or QUIT to exit the asterisk console\n"); + else + ast_cli(STDOUT_FILENO, "\nUse STOP NOW to shutdown Asterisk\n"); + } } } else { |