From 27665c5cfbd1085eb0048d87dab8c0f8dfa6f2b4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 11 Feb 2002 08:23:02 +0000 Subject: -actcolor %n now means that the activity isn't changed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2429 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/hilight-text.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fe-common/core') diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c index 0bdda55f..4d5466e2 100644 --- a/src/fe-common/core/hilight-text.c +++ b/src/fe-common/core/hilight-text.c @@ -272,8 +272,11 @@ static void hilight_update_text_dest(TEXT_DEST_REC *dest, HILIGHT_REC *rec) if (rec->priority > 0) dest->hilight_priority = rec->priority; - g_free_not_null(dest->hilight_color); - dest->hilight_color = hilight_get_act_color(rec); + g_free_and_null(dest->hilight_color); + if (rec->act_color != NULL && strcmp(rec->act_color, "%n") == 0) + dest->level |= MSGLEVEL_NO_ACT; + else + dest->hilight_color = hilight_get_act_color(rec); } static void sig_print_text(TEXT_DEST_REC *dest, const char *text, -- cgit v1.2.3