From 9ef3044e982dda3dd71351a88da565d8131ed7c0 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 28 Dec 2002 14:20:08 +0000 Subject: [PATCH] /set ignore_hide_targets supports now also checking for servertag/target git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3076 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/window-activity.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/fe-common/core/window-activity.c b/src/fe-common/core/window-activity.c index 7238e50b..883821f0 100644 --- a/src/fe-common/core/window-activity.c +++ b/src/fe-common/core/window-activity.c @@ -76,6 +76,7 @@ void window_item_activity(WI_ITEM_REC *item, int data_level, static void sig_hilight_text(TEXT_DEST_REC *dest, const char *msg) { WI_ITEM_REC *item; + char *tagtarget; int data_level; if (dest->window == active_win || (dest->level & hide_level)) @@ -88,9 +89,19 @@ static void sig_hilight_text(TEXT_DEST_REC *dest, const char *msg) DATA_LEVEL_MSG : DATA_LEVEL_TEXT; } - if ((dest->level & MSGLEVEL_HILIGHT) == 0 && - hide_target_activity(data_level, dest->target)) - return; + if ((dest->level & MSGLEVEL_HILIGHT) == 0) { + /* check for both target and tag/target */ + if (hide_target_activity(data_level, dest->target)) + return; + + tagtarget = g_strdup_printf("%s/%s", dest->server_tag, + dest->target); + if (hide_target_activity(data_level, tagtarget)) { + g_free(tagtarget); + return; + } + g_free(tagtarget); + } if (dest->target != NULL) { item = window_item_find(dest->server, dest->target);