Mercurial > pidgin
comparison src/util.c @ 1856:8f06476b1296
[gaim-migrate @ 1866]
Faceprint is my nice friend.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 17 May 2001 17:25:26 +0000 |
parents | 4dbd8533d209 |
children | 75643b9f4261 |
comparison
equal
deleted
inserted
replaced
1855:49ccc63d8d27 | 1856:8f06476b1296 |
---|---|
437 flag = 1; | 437 flag = 1; |
438 | 438 |
439 fd = fopen(l->filename, "a"); | 439 fd = fopen(l->filename, "a"); |
440 | 440 |
441 if (flag) { /* is a new file */ | 441 if (flag) { /* is a new file */ |
442 fprintf(fd, "<HTML><HEAD><TITLE>"); | 442 if (logging_options & OPT_LOG_STRIP_HTML) { |
443 fprintf(fd, "IM Sessions with %s", name); | 443 fprintf(fd, "IM Sessions with %s\n", name); |
444 fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); | 444 }else { |
445 fprintf(fd, "<HTML><HEAD><TITLE>"); | |
446 fprintf(fd, "IM Sessions with %s", name); | |
447 fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); | |
448 } | |
445 } | 449 } |
446 | 450 |
447 return fd; | 451 return fd; |
448 } | 452 } |
449 | 453 |
450 g_snprintf(realname, sizeof(realname), "%s.log", normalize(name)); | 454 g_snprintf(realname, sizeof(realname), "%s.log", normalize(name)); |
451 fd = open_gaim_log_file(realname, &flag); | 455 fd = open_gaim_log_file(realname, &flag); |
452 | 456 |
453 if (fd && flag) { /* is a new file */ | 457 if (fd && flag) { /* is a new file */ |
454 fprintf(fd, "<HTML><HEAD><TITLE>"); | 458 if (logging_options & OPT_LOG_STRIP_HTML) { |
455 fprintf(fd, "IM Sessions with %s", name); | 459 fprintf(fd, "IM Sessions with %s\n", name); |
456 fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); | 460 }else { |
461 fprintf(fd, "<HTML><HEAD><TITLE>"); | |
462 fprintf(fd, "IM Sessions with %s", name); | |
463 fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); | |
464 } | |
457 } | 465 } |
458 | 466 |
459 return fd; | 467 return fd; |
460 } | 468 } |
461 | 469 |