summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-10-03 22:21:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-10-03 22:21:32 +0000
commit145b91bf6c8641d5ea918c09c17e95ec866eccb1 (patch)
tree6b12b8a4a14f6b4ec93ae39117b897a5ae1a25fe /src/fe-common/core
parent525773aa80b3bc441768d49be82dd1ddd5f583a1 (diff)
downloadirssi-145b91bf6c8641d5ea918c09c17e95ec866eccb1.zip
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
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/fe-common-core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c
index ddac0fa3..32f405ac 100644
--- a/src/fe-common/core/fe-common-core.c
+++ b/src/fe-common/core/fe-common-core.c
@@ -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)
{
WINDOW_REC *window;
@@ -287,14 +289,14 @@ static void create_windows(void)
window_set_name(window, "(status)");
window_set_level(window, MSGLEVEL_ALL ^
(settings_get_bool("use_msgs_window") ?
- (MSGLEVEL_MSGS|MSGLEVEL_DCCMSGS) : 0));
+ MSGS_WINDOW_LEVELS : 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_level(window, MSGS_WINDOW_LEVELS);
window_set_immortal(window, TRUE);
}