diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-11 08:23:02 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-11 08:23:02 +0000 |
commit | 27665c5cfbd1085eb0048d87dab8c0f8dfa6f2b4 (patch) | |
tree | 2be744439b4b423436b21ee50aaae50b16682b5c /src/fe-common | |
parent | d883248be22c90d4d1fb061ea5665c5c258f73b9 (diff) | |
download | irssi-27665c5cfbd1085eb0048d87dab8c0f8dfa6f2b4.zip |
-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
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/hilight-text.c | 7 |
1 files changed, 5 insertions, 2 deletions
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, |