Mercurial > pidgin
changeset 7462:5fb4cbf1ac54
[gaim-migrate @ 8075]
even better...kill it at the source
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 08 Nov 2003 08:49:07 +0000 |
parents | c1ddc403fda4 |
children | f2d82df37252 |
files | src/log.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/log.c Sat Nov 08 08:21:48 2003 +0000 +++ b/src/log.c Sat Nov 08 08:49:07 2003 +0000 @@ -71,8 +71,11 @@ char *gaim_log_read(GaimLog *log, GaimLogReadFlags *flags) { g_return_val_if_fail(log && log->logger, NULL); - if (log->logger->read) - return (log->logger->read)(log, flags); + if (log->logger->read) { + char *ret = (log->logger->read)(log, flags); + gaim_str_strip_linefeed(ret); + return ret; + } return (_("<b><font color\"=red\">The logger has no read function</font></b>")); } @@ -693,7 +696,6 @@ *flags = 0; if(strstr(read, "<BR>")) *flags |= GAIM_LOG_READ_NO_NEWLINE; - gaim_str_strip_linefeed(read); return read; }