comparison src/log.c @ 11920:52f27ffe68a5

[gaim-migrate @ 14211] sf patch #1339035, from Sadrul Habib Chowdhury "Remove the \n in Yahoo! status messages when showing them in the buddy list inline." Also some changes from me. I changed gaim_str_strip_cr(char *text) to gaim_str_strip_char(char *text, char thechar). I don't know why, really, but it seems like it could be more useful this way. Eh committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 31 Oct 2005 04:27:06 +0000
parents a53cef8bd22b
children 1c0fd404e07e
comparison
equal deleted inserted replaced
11919:51832ad72a6b 11920:52f27ffe68a5
121 { 121 {
122 GaimLogReadFlags mflags; 122 GaimLogReadFlags mflags;
123 g_return_val_if_fail(log && log->logger, NULL); 123 g_return_val_if_fail(log && log->logger, NULL);
124 if (log->logger->read) { 124 if (log->logger->read) {
125 char *ret = (log->logger->read)(log, flags ? flags : &mflags); 125 char *ret = (log->logger->read)(log, flags ? flags : &mflags);
126 gaim_str_strip_cr(ret); 126 gaim_str_strip_char(ret, '\r');
127 return ret; 127 return ret;
128 } 128 }
129 return (_("<b><font color=\"red\">The logger has no read function</font></b>")); 129 return (_("<b><font color=\"red\">The logger has no read function</font></b>"));
130 } 130 }
131 131