diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-21 02:34:03 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-21 02:34:03 +0000 |
commit | 52c322d2e83a78bef996bfee0c782b76ca966cae (patch) | |
tree | 057ab8c59b678df983dca5c30455546dc7cb5c37 /asterisk.c | |
parent | 1cb15b1c24194d1f87c22b223e6c6728b21b0f1d (diff) |
don't tell people to exit/quit when it's not a valid command anymore
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1391 f38db490-d61c-443f-a65b-d21fe96a405b
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 { |