From 5ad955236528d3962e63ce486bcbda2ee6896a63 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Tue, 8 Oct 2013 23:59:36 +0100 Subject: Fix messages with server-time not showing as new activity Added a parameter to fe_print_text() to say that the message does not represent new activity. This is used when a log from an old session is loaded. This used to be implicit whenever the timestamp was non-zero, but with server-time this no longer makes sense. Fixes issue #746. --- src/fe-gtk/fe-gtk.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 97067f90..af3173e1 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -607,12 +607,13 @@ fe_progressbar_end (server *serv) } void -fe_print_text (struct session *sess, char *text, time_t stamp) +fe_print_text (struct session *sess, char *text, time_t stamp, + gboolean no_activity) { PrintTextRaw (sess->res->buffer, (unsigned char *)text, prefs.hex_text_indent, stamp); - if (!sess->new_data && sess != current_tab && - sess->gui->is_tab && !sess->nick_said && stamp == 0) + if (!no_activity && !sess->new_data && sess != current_tab && + sess->gui->is_tab && !sess->nick_said) { sess->new_data = TRUE; lastact_update (sess); -- cgit 1.4.1