mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
When /SET autoclose_windows is ON, don't destroy windows if they have
some level set (like /join -w + /part in status window) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1327 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ab5166033c
commit
1a61f989e1
4 changed files with 13 additions and 8 deletions
|
|
@ -69,11 +69,8 @@ static void signal_channel_destroyed(CHANNEL_REC *channel)
|
|||
/* kicked out from channel */
|
||||
window_bind_add(window, channel->server->tag,
|
||||
channel->name);
|
||||
} else if (settings_get_bool("autoclose_windows") &&
|
||||
(!channel->joined || channel->left) &&
|
||||
window->items == NULL && windows->next != NULL) {
|
||||
window_destroy(window);
|
||||
}
|
||||
} else if (!channel->joined || channel->left)
|
||||
window_auto_destroy(window);
|
||||
}
|
||||
|
||||
static void signal_window_item_destroy(WINDOW_REC *window, WI_ITEM_REC *item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue