diff options
author | James Booth <boothj5@gmail.com> | 2012-11-09 01:31:52 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-09 01:31:52 +0000 |
commit | 8099dfbde6c573e3be0c6644cb13743098b8f31b (patch) | |
tree | 40e827272b52cbdbeecf67cad92a0deacdab054c /src/command.c | |
parent | 187ea6e8b87705c43dfbd91a0b17cdac124fce4d (diff) | |
download | profani-tty-8099dfbde6c573e3be0c6644cb13743098b8f31b.tar.gz |
Fixed leaving chat room
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c index 938a6a08..b91a1180 100644 --- a/src/command.c +++ b/src/command.c @@ -1093,8 +1093,8 @@ _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()) { + win_close_win(); + } else if (win_in_chat()) { if (prefs_get_states()) { char *recipient = win_get_recipient(); |