changeset 10854:bdd72261ec8c

[gaim-migrate @ 12529] No need to crash just because we're disconnected. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 20 Apr 2005 01:16:17 +0000
parents 2409700be3dc
children 2d3a935462aa
files src/gtkconv.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Tue Apr 19 19:48:29 2005 +0000
+++ b/src/gtkconv.c	Wed Apr 20 01:16:17 2005 +0000
@@ -4810,7 +4810,7 @@
 
 		g_snprintf(buf2, sizeof(buf2),
 			   "<FONT %s><FONT SIZE=\"2\"><!--(%s) --></FONT><B>%s</B></FONT>",
-			   sml_attrib, mdate, message);
+			   sml_attrib ? sml_attrib : "", mdate, message);
 
 		gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), buf2, 0);
 
@@ -4820,14 +4820,14 @@
 
 		g_snprintf(buf2, sizeof(buf2),
 			   "<FONT COLOR=\"#ff0000\"><FONT %s><FONT SIZE=\"2\"><!--(%s) --></FONT><B>%s</B></FONT></FONT>",
-			   sml_attrib, mdate, message);
+			   sml_attrib ? sml_attrib : "", mdate, message);
 
 		gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), buf2, 0);
 
 	} else if (flags & GAIM_MESSAGE_NO_LOG) {
 		g_snprintf(buf, BUF_LONG,
 			   "<B><FONT %s COLOR=\"#777777\">%s</FONT></B>",
-			   sml_attrib, message);
+			   sml_attrib ? sml_attrib : "", message);
 
 		gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), buf, 0);
 	} else if (flags & GAIM_MESSAGE_RAW) {