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

/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
This commit is contained in:
Timo Sirainen 2001-01-28 19:31:45 +00:00 committed by cras
parent 3db17abb4d
commit e09be2c7b4

View File

@ -68,8 +68,8 @@ static void window_item_activity(WI_ITEM_REC *item,
} }
#define hide_target_activity(data_level, target) \ #define hide_target_activity(data_level, target) \
((data_level) < DATA_LEVEL_HILIGHT && (target) != NULL && \ ((target) != NULL && hide_targets != NULL && \
hide_targets != NULL && strarray_find(hide_targets, target) != -1) strarray_find(hide_targets, target) != -1)
static void sig_hilight_text(TEXT_DEST_REC *dest, const char *msg) 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)) if (dest->window == active_win || (dest->level & hide_level))
return; return;
if (dest->level & hilight_level) if (dest->level & hilight_level) {
data_level = DATA_LEVEL_HILIGHT+dest->hilight_priority; data_level = DATA_LEVEL_HILIGHT+dest->hilight_priority;
else { } else {
data_level = (dest->level & msg_level) ? data_level = (dest->level & msg_level) ?
DATA_LEVEL_MSG : DATA_LEVEL_TEXT; 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; return;
if (dest->target != NULL) { if (dest->target != NULL) {