1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04: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;
for (curr = 1; curr <= 9; curr++) {
if (ui_win_exists(curr) && (ui_win_unread(curr) == 0)) {
if (conn_status == JABBER_CONNECTED) {
ui_close_connected_win(curr);
if (ui_win_exists(curr)) {
win_type_t win_type = windows[curr]->type;
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;
}
}