diff --git a/interface.c b/interface.c index 9e71d9e..31ed3c5 100644 --- a/interface.c +++ b/interface.c @@ -261,6 +261,7 @@ char *commands[] = { "status_online", "status_offline", "contacts_search", + "quit", 0 }; int commands_flags[] = { @@ -297,6 +298,7 @@ int commands_flags[] = { 07, 07, 07, + 07, }; int get_complete_mode (void) { @@ -807,6 +809,8 @@ void interpreter (char *line UU) { RET; } do_contacts_search (100, s); + } else if (IS_WORD ("quit")) { + exit (0); } #undef IS_WORD #undef RET