mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
Add new option irc.color.item_buffer_name_ssl (task #10339)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user