changeset 13165:c0a6b8f29035

[gaim-migrate @ 15528] Unescape HTML when sending messages to SMS (mobile) users over AIM committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 07 Feb 2006 19:29:57 +0000
parents 87ca2f6bd0dc
children f0577a01b2cf
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);