From ed21ffbaf40277fa3c6669d8aa815eb987ec5230 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Thu, 2 Jun 2005 11:28:03 +0000 Subject: [PATCH] Bug 204411 - Re-request channel topic when character encoding is changed. ChatZilla only. r=samuel a=shaver git-svn-id: svn://10.0.0.236/trunk@174052 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/irc/xul/content/commands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/extensions/irc/xul/content/commands.js b/mozilla/extensions/irc/xul/content/commands.js index 47b2b8c4838..a7461c5d2ca 100644 --- a/mozilla/extensions/irc/xul/content/commands.js +++ b/mozilla/extensions/irc/xul/content/commands.js @@ -940,6 +940,10 @@ function cmdCharset(e) } display(getMsg(msg, pm.prefs["charset"])); + + // If we're on a channel, get the topic again so it can be re-decoded. + if (e.newCharset && e.server && e.channel) + e.server.sendData("TOPIC " + e.channel.encodedName + "\n"); } function cmdCreateTabForView(e)