diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-28 19:31:45 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-28 19:31:45 +0000 |
commit | e09be2c7b4b0af8f59fd3119439010393540e2e7 (patch) | |
tree | 6d324344db8c54c15b3e156a6ec7cdfbe2129486 /src/fe-common | |
parent | 3db17abb4dc9534f69b78c97ae918078c1e1717e (diff) | |
download | irssi-e09be2c7b4b0af8f59fd3119439010393540e2e7.zip |
/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
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/window-activity.c | 11 |
1 files 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) { |