# HG changeset patch # User Mark Doliner # Date 1082828117 0 # Node ID 9693c881ac78e7b69adcce3e222163c903dbe602 # Parent 135e295a05bbbfa38a49ec20dcf4061dbcc968d7 [gaim-migrate @ 9562] You might think, "Yeah, I fixed that." But you didn't. committer: Tailor Script diff -r 135e295a05bb -r 9693c881ac78 src/protocols/oscar/oscar.c --- 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
*/ - 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);