Fixed leaving chat room

This commit is contained in:
James Booth
2012-11-09 01:31:52 +00:00
parent 187ea6e8b8
commit 8099dfbde6
3 changed files with 18 additions and 2 deletions

View File

@@ -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();