diff src/protocols/silc/chat.c @ 9359:43741d8f76f7

[gaim-migrate @ 10167] More patches from Stu on patch 975859 -- this one adds back lost commands committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Wed, 23 Jun 2004 16:58:22 +0000
parents b8138f3959dc
children 2770a0e659ca
line wrap: on
line diff
--- a/src/protocols/silc/chat.c	Wed Jun 23 15:12:02 2004 +0000
+++ b/src/protocols/silc/chat.c	Wed Jun 23 16:58:22 2004 +0000
@@ -1217,6 +1217,7 @@
 	SilcUInt32 flags;
 	int ret;
 	const char *msg2;
+	char *tmp;
 	gboolean found = FALSE;
 	gboolean sign = gaim_prefs_get_bool("/plugins/prpl/silc/sign_chat");
 
@@ -1282,9 +1283,12 @@
 	ret = silc_client_send_channel_message(client, conn, channel, key,
 					       flags, (unsigned char *)msg2,
 					       strlen(msg2), TRUE);
-	if (ret)
-		serv_got_chat_in(gc, id, gaim_connection_get_display_name(gc), 0, msg,
+	if (ret) {
+		tmp = gaim_escape_html(msg);
+		serv_got_chat_in(gc, id, gaim_connection_get_display_name(gc), 0, tmp,
 				 time(NULL));
+		g_free(tmp);
+	}
 
 	return ret;
 }