diff options
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 4 |
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()) { |