diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-04-20 22:19:43 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-04-20 22:19:43 +0200 |
commit | 9cbcc24d4c19c6a37b0f0c7948955ec4f0cd73be (patch) | |
tree | 823130a84def56758981f788d0dace07f2753e3f /src/plugins/irc/irc-config.c | |
parent | b06c02f199ad5d3356d5b9504c9acd5c4b513e1f (diff) | |
download | weechat-9cbcc24d4c19c6a37b0f0c7948955ec4f0cd73be.zip |
Add new option irc.color.item_buffer_name_ssl (task #10339)
Diffstat (limited to 'src/plugins/irc/irc-config.c')
-rw-r--r-- | src/plugins/irc/irc-config.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index ab3e7e01d..b7c1d3d7d 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -87,6 +87,7 @@ struct t_config_option *irc_config_color_notice; struct t_config_option *irc_config_color_input_nick; struct t_config_option *irc_config_color_item_away; struct t_config_option *irc_config_color_item_channel_modes; +struct t_config_option *irc_config_color_item_buffer_name_ssl; /* IRC config, network section */ @@ -389,13 +390,13 @@ irc_config_change_color_item_away (void *data, } /* - * irc_config_change_color_item_channel_modes: called when the color of channel - * modes is changed + * irc_config_change_color_item_buffer_name: called when the color of buffer + * name is changed */ void -irc_config_change_color_item_channel_modes (void *data, - struct t_config_option *option) +irc_config_change_color_item_buffer_name (void *data, + struct t_config_option *option) { /* make C compiler happy */ (void) data; @@ -1634,7 +1635,13 @@ irc_config_init () "item_channel_modes", "color", N_("color for channel modes, near channel name"), NULL, -1, 0, "default", NULL, 0, NULL, NULL, - &irc_config_change_color_item_channel_modes, NULL, NULL, NULL); + &irc_config_change_color_item_buffer_name, NULL, NULL, NULL); + irc_config_color_item_buffer_name_ssl = weechat_config_new_option ( + irc_config_file, ptr_section, + "item_buffer_name_ssl", "color", + N_("color for buffer name when connected using SSL to server"), + NULL, -1, 0, "lightgreen", NULL, 0, NULL, NULL, + &irc_config_change_color_item_buffer_name, NULL, NULL, NULL); /* network */ ptr_section = weechat_config_new_section (irc_config_file, "network", |