comparison src/conversation.c @ 1034:1d43fda97960

[gaim-migrate @ 1044] this is bad, it silently fails if you can't log, but then again, it's better than verbally segfaulting committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 31 Oct 2000 07:18:44 +0000
parents 643a4d81c18a
children e1408fb04c36
comparison
equal deleted inserted replaced
1033:099748ff3a0a 1034:1d43fda97960
125 125
126 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(c->name)) { 126 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(c->name)) {
127 FILE *fd; 127 FILE *fd;
128 128
129 fd = open_log_file(c->name); 129 fd = open_log_file(c->name);
130 if (!(general_options & OPT_GEN_STRIP_HTML)) 130 if (fd > 0) {
131 fprintf(fd, "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", full_date()); 131 if (!(general_options & OPT_GEN_STRIP_HTML))
132 else 132 fprintf(fd, "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", full_date());
133 fprintf(fd, " ---- New Conversation @ %s ----\n", full_date()); 133 else
134 134 fprintf(fd, " ---- New Conversation @ %s ----\n", full_date());
135 fclose(fd); 135 fclose(fd);
136 } else
137 /* do we want to do something here? */ ;
136 } 138 }
137 139
138 if (connections) 140 if (connections)
139 c->gc = (struct gaim_connection *)connections->data; 141 c->gc = (struct gaim_connection *)connections->data;
140 show_conv(c); 142 show_conv(c);