summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-config.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-08-14 21:25:27 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-08-14 21:25:27 +0200
commit15218ed294af2c1d0657e475539395e7862fd32c (patch)
tree0b8f3e3bf8e30b0e1dec85ab611453a15c63efcd /src/plugins/irc/irc-config.c
parentbe3025f5699110c675951e5d4b50b1b5f1d54325 (diff)
downloadweechat-15218ed294af2c1d0657e475539395e7862fd32c.zip
irc: add option irc.network.channel_encode (issue #218, issue #482)
This is a workaround (disabled by default) to join and chat on ISO encoded channels (or another charset different from UTF-8). This option may be removed in future if a better solution is implemented.
Diffstat (limited to 'src/plugins/irc/irc-config.c')
-rw-r--r--src/plugins/irc/irc-config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 5f9dfc451..1affe899f 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -135,6 +135,7 @@ struct t_config_option *irc_config_network_alternate_nick;
struct t_config_option *irc_config_network_autoreconnect_delay_growing;
struct t_config_option *irc_config_network_autoreconnect_delay_max;
struct t_config_option *irc_config_network_ban_mask_default;
+struct t_config_option *irc_config_network_channel_encode;
struct t_config_option *irc_config_network_colors_receive;
struct t_config_option *irc_config_network_colors_send;
struct t_config_option *irc_config_network_lag_check;
@@ -2971,6 +2972,15 @@ irc_config_init ()
"default mask is used only if WeeChat knows the host for the nick"),
NULL, 0, 0, "*!$ident@$host", NULL, 0, NULL, NULL,
NULL, NULL, NULL, NULL);
+ irc_config_network_channel_encode = weechat_config_new_option (
+ irc_config_file, ptr_section,
+ "channel_encode", "boolean",
+ N_("decode/encode channel name inside messages using charset options "
+ "(like it was done in WeeChat <= 1.2); it is recommended to keep "
+ "that off if you use only UTF-8 in channel names; you can enable "
+ "this option if you are using an exotic charset like ISO in "
+ "channel names"),
+ NULL, 0, 0, "off", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
irc_config_network_colors_receive = weechat_config_new_option (
irc_config_file, ptr_section,
"colors_receive", "boolean",