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.
This commit is contained in:
Diogo Sousa
2013-10-08 23:59:36 +01:00
committed by TingPing
parent 111a58f1ef
commit 5ad9552365
4 changed files with 15 additions and 11 deletions

View File

@@ -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);