diff src/protocols/oscar/oscar.c @ 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 d7b8eb1f0a18
children 518455386538
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);