mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Support for "immortal" windows, that can't be closed until explicitly set to
mortal with /WINDOW IMMORTAL OFF. Status and msgs windows are immortal by default. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2422 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
59c5bb100a
commit
9bb16705a5
7 changed files with 69 additions and 7 deletions
|
|
@ -292,12 +292,14 @@ static void create_windows(void)
|
|||
window_set_level(window, MSGLEVEL_ALL ^
|
||||
(settings_get_bool("use_msgs_window") ?
|
||||
(MSGLEVEL_MSGS|MSGLEVEL_DCCMSGS) : 0));
|
||||
window_set_immortal(window, TRUE);
|
||||
}
|
||||
|
||||
if (settings_get_bool("use_msgs_window")) {
|
||||
window = window_create(NULL, TRUE);
|
||||
window_set_name(window, "(msgs)");
|
||||
window_set_level(window, MSGLEVEL_MSGS|MSGLEVEL_DCCMSGS);
|
||||
window_set_immortal(window, TRUE);
|
||||
}
|
||||
|
||||
if (windows == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue