diff src/server.c @ 1722:1edc8b545d6f

[gaim-migrate @ 1732] bugfixes and mem plugs committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 17 Apr 2001 20:42:47 +0000
parents 15096a01cd23
children 76e601b77099
line wrap: on
line diff
--- a/src/server.c	Mon Apr 16 17:04:15 2001 +0000
+++ b/src/server.c	Tue Apr 17 20:42:47 2001 +0000
@@ -657,14 +657,16 @@
 		g_snprintf(filename, 100, "%s.chat", b->name);
 
 		fd = open_log_file(filename);
-		if (!(logging_options & OPT_LOG_STRIP_HTML))
-			fprintf(fd,
-				"<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n",
-				full_date());
-		else
-			fprintf(fd, "---- New Conversation @ %s ----\n", full_date());
+		if (fd) {
+			if (!(logging_options & OPT_LOG_STRIP_HTML))
+				fprintf(fd,
+					"<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n",
+					full_date());
+			else
+				fprintf(fd, "---- New Conversation @ %s ----\n", full_date());
 
-		fclose(fd);
+			fclose(fd);
+		}
 		free(filename);
 	}