Commit ea6ce649 authored by vysheng's avatar vysheng

Added quit comman

parent 8193960c
...@@ -261,6 +261,7 @@ char *commands[] = { ...@@ -261,6 +261,7 @@ char *commands[] = {
"status_online", "status_online",
"status_offline", "status_offline",
"contacts_search", "contacts_search",
"quit",
0 }; 0 };
int commands_flags[] = { int commands_flags[] = {
...@@ -297,6 +298,7 @@ int commands_flags[] = { ...@@ -297,6 +298,7 @@ int commands_flags[] = {
07, 07,
07, 07,
07, 07,
07,
}; };
int get_complete_mode (void) { int get_complete_mode (void) {
...@@ -807,6 +809,8 @@ void interpreter (char *line UU) { ...@@ -807,6 +809,8 @@ void interpreter (char *line UU) {
RET; RET;
} }
do_contacts_search (100, s); do_contacts_search (100, s);
} else if (IS_WORD ("quit")) {
exit (0);
} }
#undef IS_WORD #undef IS_WORD
#undef RET #undef RET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment