diff src/server.c @ 888:38ffd1faa31a

[gaim-migrate @ 898] "New Conversation" is logged in chatroom log files. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Tue, 12 Sep 2000 17:56:39 +0000
parents bac7089491c1
children e1a7fc4482b9
line wrap: on
line diff
--- a/src/server.c	Tue Sep 12 17:08:28 2000 +0000
+++ b/src/server.c	Tue Sep 12 17:56:39 2000 +0000
@@ -933,6 +933,24 @@
         b->in_room = NULL;
         b->id = id;
         g_snprintf(b->name, 80, "%s", name);
+
+	if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(b->name)) {
+		FILE *fd;
+		char *filename;
+
+		filename = (char *)malloc(100);
+		snprintf(filename, 100, "%s.chat", b->name);
+		
+		fd = open_log_file(filename);
+		if (!(general_options & OPT_GEN_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);
+		free(filename);
+	}
+	
         show_new_buddy_chat(b);
 }