diff src/util.c @ 373:1d29321843b0

[gaim-migrate @ 383] raise chat windows and log chat committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 10 Jun 2000 00:48:43 +0000
parents b402a23f35df
children 7ea55575cc01
line wrap: on
line diff
--- a/src/util.c	Fri Jun 09 10:32:33 2000 +0000
+++ b/src/util.c	Sat Jun 10 00:48:43 2000 +0000
@@ -305,7 +305,7 @@
 }
 
 
-FILE *open_log_file (struct conversation *c)
+FILE *open_log_file (char *name)
 {
         char *buf;
         char *buf2;
@@ -318,7 +318,7 @@
 
         if (!(general_options & OPT_GEN_LOG_ALL)) {
 
-                l = find_log_info(c->name);
+                l = find_log_info(name);
                 if (!l)
                         return NULL;
 
@@ -329,7 +329,7 @@
 
                 if (flag) { /* is a new file */
                         fprintf(fd, "<HTML><HEAD><TITLE>" );
-                        fprintf(fd, "IM Sessions with %s", c->name );
+                        fprintf(fd, "IM Sessions with %s", name );
                         fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n" );
                 }
 
@@ -381,7 +381,7 @@
                 fclose(fd);
 
         
-        g_snprintf(log_all_file, 256, "%s/.gaim/%s/%s.log", getenv("HOME"), current_user->username, normalize(c->name));
+        g_snprintf(log_all_file, 256, "%s/.gaim/%s/%s.log", getenv("HOME"), current_user->username, normalize(name));
 
         if (stat(log_all_file, &st) < 0)
                 flag = 1;
@@ -393,7 +393,7 @@
 
         if (flag) { /* is a new file */
 		fprintf(fd, "<HTML><HEAD><TITLE>" );
-		fprintf(fd, "IM Sessions with %s", c->name );
+		fprintf(fd, "IM Sessions with %s", name );
 		fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n" );
         }