1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Do not close MUC windows on /wins prune

closes #172
This commit is contained in:
James Booth 2013-05-22 23:48:24 +01:00
parent d017999a91
commit 0ced96f578

View File

@ -665,12 +665,15 @@ ui_prune_wins(void)
gboolean pruned = FALSE; gboolean pruned = FALSE;
for (curr = 1; curr <= 9; curr++) { for (curr = 1; curr <= 9; curr++) {
if (ui_win_exists(curr) && (ui_win_unread(curr) == 0)) { if (ui_win_exists(curr)) {
if (conn_status == JABBER_CONNECTED) { win_type_t win_type = windows[curr]->type;
ui_close_connected_win(curr); if ((ui_win_unread(curr) == 0) && (win_type != WIN_MUC)) {
if (conn_status == JABBER_CONNECTED) {
ui_close_connected_win(curr);
}
ui_close_win(curr);
pruned = TRUE;
} }
ui_close_win(curr);
pruned = TRUE;
} }
} }