Mercurial > pidgin
changeset 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 | 49ccc63d8d27 |
children | 9ea0b9531bc9 |
files | ChangeLog src/util.c |
diffstat | 2 files changed, 16 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu May 17 04:11:36 2001 +0000 +++ b/ChangeLog Thu May 17 17:25:26 2001 +0000 @@ -14,6 +14,8 @@ packet logs, aechols) * More IRC improvements [colors, etc] (Thanks Sean Egan) * Improved proxy options for TOC, IRC, MSN, Jabber + * Fixed a small issue with HTML not being stripped from + log files properly (Thanks, faceprint) version 0.11.0-pre11 (04/30/2001): * Zephyr updates and additions, thanks Neil Sanchala (nsanch)
--- a/src/util.c Thu May 17 04:11:36 2001 +0000 +++ b/src/util.c Thu May 17 17:25:26 2001 +0000 @@ -439,9 +439,13 @@ fd = fopen(l->filename, "a"); if (flag) { /* is a new file */ - fprintf(fd, "<HTML><HEAD><TITLE>"); - fprintf(fd, "IM Sessions with %s", name); - fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); + if (logging_options & OPT_LOG_STRIP_HTML) { + fprintf(fd, "IM Sessions with %s\n", name); + }else { + fprintf(fd, "<HTML><HEAD><TITLE>"); + fprintf(fd, "IM Sessions with %s", name); + fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); + } } return fd; @@ -451,9 +455,13 @@ fd = open_gaim_log_file(realname, &flag); if (fd && flag) { /* is a new file */ - fprintf(fd, "<HTML><HEAD><TITLE>"); - fprintf(fd, "IM Sessions with %s", name); - fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); + if (logging_options & OPT_LOG_STRIP_HTML) { + fprintf(fd, "IM Sessions with %s\n", name); + }else { + fprintf(fd, "<HTML><HEAD><TITLE>"); + fprintf(fd, "IM Sessions with %s", name); + fprintf(fd, "</TITLE></HEAD><BODY BGCOLOR=\"ffffff\">\n"); + } } return fd;