From e09be2c7b4b0af8f59fd3119439010393540e2e7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 28 Jan 2001 19:31:45 +0000 Subject: [PATCH] /SET activity_hide_targets now hides them even if level is MSGS. Only activity of highlighted text is not hidden. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1170 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/window-activity.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fe-common/core/window-activity.c b/src/fe-common/core/window-activity.c index c0935522..f5a6d4a1 100644 --- a/src/fe-common/core/window-activity.c +++ b/src/fe-common/core/window-activity.c @@ -68,8 +68,8 @@ static void window_item_activity(WI_ITEM_REC *item, } #define hide_target_activity(data_level, target) \ - ((data_level) < DATA_LEVEL_HILIGHT && (target) != NULL && \ - hide_targets != NULL && strarray_find(hide_targets, target) != -1) + ((target) != NULL && hide_targets != NULL && \ + strarray_find(hide_targets, target) != -1) static void sig_hilight_text(TEXT_DEST_REC *dest, const char *msg) { @@ -79,14 +79,15 @@ static void sig_hilight_text(TEXT_DEST_REC *dest, const char *msg) if (dest->window == active_win || (dest->level & hide_level)) return; - if (dest->level & hilight_level) + if (dest->level & hilight_level) { data_level = DATA_LEVEL_HILIGHT+dest->hilight_priority; - else { + } else { data_level = (dest->level & msg_level) ? DATA_LEVEL_MSG : DATA_LEVEL_TEXT; } - if (hide_target_activity(data_level, dest->target)) + if ((dest->level & MSGLEVEL_HILIGHT) == 0 && + hide_target_activity(data_level, dest->target)) return; if (dest->target != NULL) {