# HG changeset patch # User Luke Schierer # Date 1052168317 0 # Node ID ee2b7e4de04e79f85f0b0144f01739df4accc41c # Parent 857106f8f971eff61184e391c0b552038de44bab [gaim-migrate @ 5671] paco got i18n topics working. committer: Tailor Script diff -r 857106f8f971 -r ee2b7e4de04e src/protocols/irc/irc.c --- 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), _("%s has changed the topic to: %s"), - text, po); - + buf = g_strdup_printf(_("%s has changed the topic to: %s"), text, po); gaim_conversation_write(c, NULL, buf, -1, WFLAG_SYSTEM, time(NULL)); + g_free(buf); + g_free(po); } }