about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-09-11 01:30:48 +0100
committerJames Booth <boothj5@gmail.com>2012-09-11 01:30:48 +0100
commit1d44a8a3453978bdc42473950a7ed0db6dd4c583 (patch)
treefabfcc21ac3d326c9d5da9fd046dae4458073a76 /src/command.c
parent07178bf3b2e4e4547df97744ec27097afa6ac97a (diff)
downloadprofani-tty-1d44a8a3453978bdc42473950a7ed0db6dd4c583.tar.gz
Started work on closing stream on quit
For standards compliance
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index a34f6faa..15424362 100644
--- a/src/command.c
+++ b/src/command.c
@@ -494,7 +494,9 @@ _cmd_connect(const char * const inp, struct cmd_help_t help)
 static gboolean
 _cmd_quit(const char * const inp, struct cmd_help_t help)
 {
-    return FALSE;
+    log_info("Profanity is shutting down.");
+    jabber_disconnect();
+    return TRUE;
 }
 
 static gboolean