about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-06 00:00:25 +0000
committerJames Booth <boothj5@gmail.com>2012-11-06 00:00:25 +0000
commitfb3d7a47d2163028d0c1aa84d7670840919abd4f (patch)
tree6991cb206bc22a19041bc65070e8591509313735 /src/command.c
parent517bc30360627b34ab74cb679bfb1cf9a67f6630 (diff)
downloadprofani-tty-fb3d7a47d2163028d0c1aa84d7670840919abd4f.tar.gz
Leaving chat rooms on /close
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 62eea490..785b133c 100644
--- a/src/command.c
+++ b/src/command.c
@@ -1082,6 +1082,10 @@ _cmd_tiny(const char * const inp, struct cmd_help_t help)
 static gboolean
 _cmd_close(const char * const inp, struct cmd_help_t help)
 {
+    if (win_in_groupchat()) {
+        char *room_jid = win_get_recipient();
+        jabber_leave_chat_room(room_jid);
+    }
     if (win_in_chat()) {
 
         if (prefs_get_states()) {