Mercurial > pidgin
changeset 8800:9693c881ac78
[gaim-migrate @ 9562]
You might think, "Yeah, I fixed that."
But you didn't.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 24 Apr 2004 17:35:17 +0000 |
parents | 135e295a05bb |
children | f184c39e3150 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sat Apr 24 16:59:43 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sat Apr 24 17:35:17 2004 +0000 @@ -4519,7 +4519,7 @@ int ret = 0; GError *err = NULL; const char *iconfile = gaim_account_get_buddy_icon(gaim_connection_get_account(gc)); - char *tmpmsg = NULL; + char *tmpmsg = NULL, *tmpmsg2 = NULL; if (dim && dim->connected) { /* If we're directly connected, send a direct IM */ @@ -4593,9 +4593,12 @@ args.destsn = name; /* For ICQ send newlines as CR/LF, for AIM send newlines as <BR> */ - if (isdigit(name[0])) - tmpmsg = gaim_str_add_cr(message); - else + /* Also strip HTML for ICQ */ + if (isdigit(name[0])) { + tmpmsg2 = gaim_markup_strip_html(message); + tmpmsg = gaim_str_add_cr(tmpmsg2); + g_free(tmpmsg2); + } else tmpmsg = gaim_strdup_withhtml(message); len = strlen(tmpmsg);