Mercurial > pidgin
comparison src/protocols/msn/msn.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 | fa742ad8068c |
children | c824e39db0e7 |
comparison
equal
deleted
inserted
replaced
11919:51832ad72a6b | 11920:52f27ffe68a5 |
---|---|
1511 memmove(p, p + 6, strlen(p + 6)); | 1511 memmove(p, p + 6, strlen(p + 6)); |
1512 url_buffer[strlen(url_buffer) - 6] = '\0'; | 1512 url_buffer[strlen(url_buffer) - 6] = '\0'; |
1513 } | 1513 } |
1514 | 1514 |
1515 /* Nuke the nasty \r's that just get in the way */ | 1515 /* Nuke the nasty \r's that just get in the way */ |
1516 gaim_str_strip_cr(url_buffer); | 1516 gaim_str_strip_char(url_buffer, '\r'); |
1517 | 1517 |
1518 /* MSN always puts in ' for apostrophes...replace them */ | 1518 /* MSN always puts in ' for apostrophes...replace them */ |
1519 while ((p = strstr(url_buffer, "'")) != NULL) | 1519 while ((p = strstr(url_buffer, "'")) != NULL) |
1520 { | 1520 { |
1521 *p = '\''; | 1521 *p = '\''; |