changeset 6970:91df6a6e6567

[gaim-migrate @ 7517] This converts the sender nickname of IRC messages properly to UTF-8. Thanks to qleap for pointing this fix out. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Thu, 25 Sep 2003 15:03:36 +0000
parents b151a7714e82
children 1e55387ed5bc
files src/protocols/irc/parse.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/parse.c	Thu Sep 25 04:01:21 2003 +0000
+++ b/src/protocols/irc/parse.c	Thu Sep 25 15:03:36 2003 +0000
@@ -446,7 +446,9 @@
 			break;
 		}
 	}
-	(msgent->cb)(irc, msgent->name, from, args);
+	tmp = irc_recv_convert(irc, from);
+	(msgent->cb)(irc, msgent->name, tmp, args);
+	g_free(tmp);
 	for (i = 0; i < strlen(msgent->format); i++) {
 		g_free(args[i]);
 	}