From 7c21fb84ee6b5f29e71d9704b9c7c3f2d411b17d Mon Sep 17 00:00:00 2001
From: Timo Sirainen <cras@irssi.org>
Date: Sat, 10 Feb 2001 08:44:19 +0000
Subject: [PATCH] /SET hilight_act_color - default color to use for
 highlighting in activity line

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1203 dbcabf3a-b0e7-0310-adc4-f8d773084564
---
 src/fe-common/core/hilight-text.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/fe-common/core/hilight-text.c b/src/fe-common/core/hilight-text.c
index 52fcb056..102db2bb 100644
--- a/src/fe-common/core/hilight-text.c
+++ b/src/fe-common/core/hilight-text.c
@@ -301,8 +301,10 @@ char *hilight_get_color(HILIGHT_REC *rec, int activity)
 
 	color = activity && rec->act_color != NULL ?
 		rec->act_color : rec->color;
-	if (color == NULL)
-		color = settings_get_str("hilight_color");
+	if (color == NULL) {
+		color = settings_get_str(activity ? "hilight_act_color" :
+					 "hilight_color");
+	}
 
 	if (isalpha((int) *color)) {
 		/* color was specified with it's name - try to convert it */
@@ -711,6 +713,7 @@ static void read_settings(void)
 void hilight_text_init(void)
 {
 	settings_add_str("lookandfeel", "hilight_color", "8");
+	settings_add_str("lookandfeel", "hilight_act_color", "13");
 	settings_add_str("lookandfeel", "hilight_level", "PUBLIC DCCMSGS");
 
 	next_nick_hilight = NULL;