Fix private highlights not setting tab color
Caused by 03767ee0f9
Fixes #1871
This commit is contained in:
parent
85bdb06cad
commit
e7c88e0f83
@ -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);
|
PrintTextRaw (sess->res->buffer, (unsigned char *)text, prefs.hex_text_indent, stamp);
|
||||||
|
|
||||||
if (!no_activity && !sess->new_data && sess != current_tab &&
|
if (no_activity || sess == current_tab || !sess->gui->is_tab)
|
||||||
sess->gui->is_tab && !sess->nick_said)
|
return;
|
||||||
{
|
|
||||||
sess->new_data = TRUE;
|
if (sess->nick_said)
|
||||||
lastact_update (sess);
|
fe_set_tab_color (sess, 3);
|
||||||
if (sess->msg_said)
|
else if (sess->msg_said)
|
||||||
fe_set_tab_color (sess, 2);
|
fe_set_tab_color (sess, 2);
|
||||||
else
|
else
|
||||||
fe_set_tab_color (sess, 1);
|
fe_set_tab_color (sess, 1);
|
||||||
|
|
||||||
|
if (!sess->new_data && !sess->nick_said)
|
||||||
|
{
|
||||||
|
sess->new_data = TRUE;
|
||||||
|
lastact_update (sess);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user