diff src/protocols/irc/irc.c @ 8163:da57fb60680a

[gaim-migrate @ 8875] IRC quoting for HTML entities by Daniel Atallah committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 22 Jan 2004 02:44:13 +0000
parents a0e7d0995156
children 9d1a984681fe
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Wed Jan 21 20:39:00 2004 +0000
+++ b/src/protocols/irc/irc.c	Thu Jan 22 02:44:13 2004 +0000
@@ -428,6 +428,7 @@
 	struct irc_conn *irc = gc->proto_data;
 	GaimConversation *convo = gaim_find_chat(gc, id);
 	const char *args[2];
+	char *tmp;
 
 	if (!convo) {
 		gaim_debug(GAIM_DEBUG_ERROR, "irc", "chat send on nonexistent chat\n");
@@ -442,7 +443,10 @@
 	args[1] = what;
 
 	irc_cmd_privmsg(irc, "msg", NULL, args);
-	serv_got_chat_in(gc, id, gaim_connection_get_display_name(gc), 0, what, time(NULL));
+
+	tmp = gaim_escape_html(what);
+	serv_got_chat_in(gc, id, gaim_connection_get_display_name(gc), 0, tmp, time(NULL));
+	g_free(tmp);
 	return 0;
 }