changeset 16108:6dab5732a4fd

Fix the HTML-on-IRC issues observed as a result of the bi-di text support patch. I don't think that patch actually introduced the problem, but made it more apparent.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 14 Apr 2007 16:37:08 +0000
parents 1980273186a4
children 8e61e7be988b
files libpurple/protocols/irc/irc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/irc.c	Sat Apr 14 16:32:42 2007 +0000
+++ b/libpurple/protocols/irc/irc.c	Sat Apr 14 16:37:08 2007 +0000
@@ -478,7 +478,7 @@
 	else
 		args[0] = who;
 
-	plain = purple_unescape_html(what);
+	purple_markup_html_to_xhtml(what, NULL, &plain);
 	args[1] = plain;
 
 	irc_cmd_privmsg(irc, "msg", NULL, args);
@@ -690,7 +690,7 @@
 		return irc_parse_cmd(irc, convo->name, what + 1);
 	}
 #endif
-	tmp = purple_unescape_html(what);
+	purple_markup_html_to_xhtml(what, NULL, &tmp);
 	args[0] = convo->name;
 	args[1] = tmp;