changeset 5299:ee2b7e4de04e

[gaim-migrate @ 5671] paco got i18n topics working. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 05 May 2003 20:58:37 +0000
parents 857106f8f971
children 5344eb60f421
files src/protocols/irc/irc.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Mon May 05 20:57:12 2003 +0000
+++ b/src/protocols/irc/irc.c	Mon May 05 20:58:37 2003 +0000
@@ -698,7 +698,7 @@
 handle_topic(struct gaim_connection *gc, char *text)
 {
 	struct gaim_conversation *c;
-	char *po = strchr(text, ' ');
+	char *po = strchr(text, ' '), *buf;
 
 	if (!po)
 		return;
@@ -707,12 +707,12 @@
 	po += 2;
 
 	if ((c = irc_find_chat(gc, text))) {
-		char buf[IRC_BUF_LEN];
+                po = irc_recv_convert(gc, po);
 		gaim_chat_set_topic(GAIM_CHAT(c), NULL, po);
-		g_snprintf(buf, sizeof(buf), _("<B>%s has changed the topic to: %s</B>"),
-			   text, po);
-
+		buf = g_strdup_printf(_("<B>%s has changed the topic to: %s</B>"), text, po);
 		gaim_conversation_write(c, NULL, buf, -1, WFLAG_SYSTEM, time(NULL));
+                g_free(buf);
+                g_free(po);
 	}
 }