summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-11-11 00:44:07 -0500
committerPatrick Griffis <tingping@tingping.se>2016-11-11 00:45:00 -0500
commite7c88e0f83f40f9d020aa7d2783e95dff55f323f (patch)
tree2cedab7ff63e27ad9cb86e34e6949fd97cd95f8b /src/fe-gtk
parent85bdb06cad4e8a58509f7421610ef9c82bbabc02 (diff)
Fix private highlights not setting tab color
Caused by 03767ee0f98

Fixes #1871
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/fe-gtk.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
index 59629047..6fed4fe8 100644
--- a/src/fe-gtk/fe-gtk.c
+++ b/src/fe-gtk/fe-gtk.c
@@ -660,15 +660,20 @@ fe_print_text (struct session *sess, char *text, time_t stamp,
 {
 	PrintTextRaw (sess->res->buffer, (unsigned char *)text, prefs.hex_text_indent, stamp);
 
-	if (!no_activity && !sess->new_data && sess != current_tab &&
-		sess->gui->is_tab && !sess->nick_said)
+	if (no_activity || sess == current_tab || !sess->gui->is_tab)
+		return;
+
+	if (sess->nick_said)
+		fe_set_tab_color (sess, 3);
+	else if (sess->msg_said)
+		fe_set_tab_color (sess, 2);
+	else
+		fe_set_tab_color (sess, 1);
+
+	if (!sess->new_data && !sess->nick_said)
 	{
 		sess->new_data = TRUE;
 		lastact_update (sess);
-		if (sess->msg_said)
-			fe_set_tab_color (sess, 2);
-		else
-			fe_set_tab_color (sess, 1);
 	}
 }