From: Mark Spencer Date: Thu, 21 Aug 2003 02:34:03 +0000 (+0000) Subject: don't tell people to exit/quit when it's not a valid command anymore X-Git-Tag: 0.5.0~105 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=7c7806d7681489c69da80d34662dd7eeec9635f6 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 --- diff --git a/asterisk.c b/asterisk.c index 8813c07..2b3f498 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 {