console/plugins/gnthistory.c

changeset 14849
24a126359a5c
parent 14845
f34a657dacd0
child 14908
0ccb73d4e584
--- a/console/plugins/gnthistory.c	Thu Oct 19 22:17:30 2006 +0000
+++ b/console/plugins/gnthistory.c	Fri Oct 20 00:19:41 2006 +0000
@@ -45,7 +45,7 @@
 	GaimConversationType convtype;
 	GList *logs = NULL;
 	const char *alias = name;
-	guint flags;
+	GaimLogReadFlags flags;
 	char *history;
 	char *header;
 	GaimMessageFlags mflag;
@@ -119,7 +119,8 @@
 	gaim_conversation_write(c, "", header, mflag, time(NULL));
 	g_free(header);
 
-	g_strchomp(history);
+	if (flags & GAIM_LOG_READ_NO_NEWLINE)
+		gaim_str_strip_char(history, '\n');
 	gaim_conversation_write(c, "", history, mflag, time(NULL));
 	g_free(history);
 

mercurial