summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-10-08 23:59:36 +0100
committerTingPing <tingping@tingping.se>2013-10-09 21:34:02 -0400
commit5ad955236528d3962e63ce486bcbda2ee6896a63 (patch)
tree660321d8b6c38b47db64307c8585c826959d3c7c /src/common/text.c
parent111a58f1ef3948d3e15c3aff5c5cbdbb7f1a4123 (diff)
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.
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/text.c b/src/common/text.c
index d18b9c1a..0b66c5fd 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -314,7 +314,7 @@ scrollback_load (session *sess)
 						text = strip_color (text + 1, -1, STRIP_COLOR);
 					}
 
-					fe_print_text (sess, text, stamp);
+					fe_print_text (sess, text, stamp, TRUE);
 
 					if (prefs.hex_text_stripcolor_replay)
 					{
@@ -340,7 +340,7 @@ scrollback_load (session *sess)
 		text = ctime (&stamp);
 		text[24] = 0;	/* get rid of the \n */
 		buf = g_strdup_printf ("\n*\t%s %s\n\n", _("Loaded log from"), text);
-		fe_print_text (sess, buf, 0);
+		fe_print_text (sess, buf, 0, TRUE);
 		g_free (buf);
 		/*EMIT_SIGNAL (XP_TE_GENMSG, sess, "*", buf, NULL, NULL, NULL, 0);*/
 	}
@@ -895,7 +895,7 @@ PrintTextTimeStamp (session *sess, char *text, time_t timestamp)
 
 	log_write (sess, text);
 	scrollback_save (sess, text);
-	fe_print_text (sess, text, timestamp);
+	fe_print_text (sess, text, timestamp, FALSE);
 
 	if (conv)
 		g_free (conv);