diff libpurple/protocols/irc/irc.c @ 23639:aac5753e2528

This adds an "auto-detect UTF-8" option to IRC which, when enabled, will treat any incoming text which validates as UTF-8 as UTF-8 regardless of the configured account encoding. It does not affect transmission, and is not enabled by default (as it interferes with some non-UTF-8 encodings, notably ISO-2022).
author Ethan Blanton <elb@pidgin.im>
date Sun, 27 Jul 2008 13:29:26 +0000
parents 1b7dea5ce0cd
children 16734635febf c204239bef48 4bc74deeb503 b522393714d6
line wrap: on
line diff
--- a/libpurple/protocols/irc/irc.c	Fri Jul 25 16:33:24 2008 +0000
+++ b/libpurple/protocols/irc/irc.c	Sun Jul 27 13:29:26 2008 +0000
@@ -989,6 +989,9 @@
 	option = purple_account_option_string_new(_("Encodings"), "encoding", IRC_DEFAULT_CHARSET);
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
 
+	option = purple_account_option_bool_new(_("Auto-detect incoming UTF-8"), "autodetect_utf8", IRC_DEFAULT_AUTODETECT);
+	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
+
 	option = purple_account_option_string_new(_("Username"), "username", "");
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);