diff libpurple/protocols/irc/irc.c @ 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 a338acd14365
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;