# HG changeset patch # User Evan Schoenberg # Date 1139340597 0 # Node ID c0a6b8f29035152dc158f96a14fb44d1befccdf3 # Parent 87ca2f6bd0dcf986ff39b60a092a65ae396908c3 [gaim-migrate @ 15528] Unescape HTML when sending messages to SMS (mobile) users over AIM committer: Tailor Script diff -r 87ca2f6bd0dc -r c0a6b8f29035 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Tue Feb 07 18:42:19 2006 +0000 +++ b/src/protocols/oscar/oscar.c Tue Feb 07 19:29:57 2006 +0000 @@ -6524,10 +6524,12 @@ args.destsn = name; /* - * If we're IMing an ICQ user from an ICQ account, then strip HTML - * and use \r\n as the newline character. - */ - if (aim_sn_is_icq(gaim_account_get_username(account))) { + * If we're IMing an SMS user or an ICQ user from an ICQ account, then strip HTML. + */ + if (aim_snvalid_sms(name)) { + /* Messaging an SMS (mobile) user */ + tmp2 = gaim_unescape_html(tmp1); + } else if (aim_sn_is_icq(gaim_account_get_username(account))) { if (aim_sn_is_icq(name)) /* From ICQ to ICQ */ tmp2 = gaim_unescape_html(tmp1);