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

/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
This commit is contained in:
Timo Sirainen 2002-12-28 14:20:08 +00:00 committed by cras
parent a3914f2586
commit 9ef3044e98

View File

@ -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);