comparison src/conversation.c @ 2004:699ddd727a49

[gaim-migrate @ 2014] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 12 Jun 2001 23:04:47 +0000
parents 43a55969523f
children eee309c0de93
comparison
equal deleted inserted replaced
2003:ffae8228d63a 2004:699ddd727a49
134 134
135 if ((logging_options & OPT_LOG_ALL) || find_log_info(c->name)) { 135 if ((logging_options & OPT_LOG_ALL) || find_log_info(c->name)) {
136 FILE *fd; 136 FILE *fd;
137 137
138 fd = open_log_file(c->name); 138 fd = open_log_file(c->name);
139 if (fd > 0) { 139 if (fd) {
140 if (!(logging_options & OPT_LOG_STRIP_HTML)) 140 if (!(logging_options & OPT_LOG_STRIP_HTML))
141 fprintf(fd, 141 fprintf(fd,
142 "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", 142 "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n",
143 full_date()); 143 full_date());
144 else 144 else
1370 if (c->is_chat) 1370 if (c->is_chat)
1371 g_snprintf(nm, 256, "%s.chat", c->name); 1371 g_snprintf(nm, 256, "%s.chat", c->name);
1372 else 1372 else
1373 g_snprintf(nm, 256, "%s", c->name); 1373 g_snprintf(nm, 256, "%s", c->name);
1374 fd = open_log_file(nm); 1374 fd = open_log_file(nm);
1375 if (fd > 0) { 1375 if (fd) {
1376 if (logging_options & OPT_LOG_STRIP_HTML) { 1376 if (logging_options & OPT_LOG_STRIP_HTML) {
1377 fprintf(fd, "%s\n", t1); 1377 fprintf(fd, "%s\n", t1);
1378 } else { 1378 } else {
1379 fprintf(fd, "%s<BR>\n", t1); 1379 fprintf(fd, "%s<BR>\n", t1);
1380 } 1380 }
1470 } else { 1470 } else {
1471 t1 = html_logize(buf); 1471 t1 = html_logize(buf);
1472 t2 = html_logize(what); 1472 t2 = html_logize(what);
1473 } 1473 }
1474 fd = open_log_file(nm); 1474 fd = open_log_file(nm);
1475 if (fd > 0) { 1475 if (fd) {
1476 if (logging_options & OPT_LOG_STRIP_HTML) { 1476 if (logging_options & OPT_LOG_STRIP_HTML) {
1477 fprintf(fd, "%s%s\n", t1, t2); 1477 fprintf(fd, "%s%s\n", t1, t2);
1478 } else { 1478 } else {
1479 fprintf(fd, "%s%s%s<BR>\n", t1, t2, logstr->str); 1479 fprintf(fd, "%s%s%s<BR>\n", t1, t2, logstr->str);
1480 g_string_free(logstr, TRUE); 1480 g_string_free(logstr, TRUE);