1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

msgs window didn't include ACTIONS but status did, so private actions went

always to status window if both status+msgs existed.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2935 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-10-03 22:21:32 +00:00 committed by cras
parent 525773aa80
commit 145b91bf6c

View File

@ -274,6 +274,8 @@ void glog_func(const char *log_domain, GLogLevelFlags log_level,
} }
} }
#define MSGS_WINDOW_LEVELS (MSGLEVEL_MSGS|MSGLEVEL_ACTIONS|MSGLEVEL_DCCMSGS)
static void create_windows(void) static void create_windows(void)
{ {
WINDOW_REC *window; WINDOW_REC *window;
@ -287,14 +289,14 @@ static void create_windows(void)
window_set_name(window, "(status)"); window_set_name(window, "(status)");
window_set_level(window, MSGLEVEL_ALL ^ window_set_level(window, MSGLEVEL_ALL ^
(settings_get_bool("use_msgs_window") ? (settings_get_bool("use_msgs_window") ?
(MSGLEVEL_MSGS|MSGLEVEL_DCCMSGS) : 0)); MSGS_WINDOW_LEVELS : 0));
window_set_immortal(window, TRUE); window_set_immortal(window, TRUE);
} }
if (settings_get_bool("use_msgs_window")) { if (settings_get_bool("use_msgs_window")) {
window = window_create(NULL, TRUE); window = window_create(NULL, TRUE);
window_set_name(window, "(msgs)"); window_set_name(window, "(msgs)");
window_set_level(window, MSGLEVEL_MSGS|MSGLEVEL_DCCMSGS); window_set_level(window, MSGS_WINDOW_LEVELS);
window_set_immortal(window, TRUE); window_set_immortal(window, TRUE);
} }