diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-19 20:53:56 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-19 20:53:56 +0100 |
commit | 1dc33f57e2a47bab119a359f175b2bd5d107e63d (patch) | |
tree | 0ec5f1bcc76b41684389eaf5fb5ce2537db4ed79 /src/plugins/irc/irc-config.c | |
parent | 33daa4bc55b1e1dcce45f921429d5c8cec75e2c4 (diff) | |
download | weechat-1dc33f57e2a47bab119a359f175b2bd5d107e63d.zip |
Remove old and unused color options
Diffstat (limited to 'src/plugins/irc/irc-config.c')
-rw-r--r-- | src/plugins/irc/irc-config.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index e3d910408..497e6bd4e 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -65,6 +65,10 @@ struct t_config_option *irc_config_look_smart_filter; struct t_config_option *irc_config_look_smart_filter_delay; struct t_config_option *irc_config_look_notice_as_pv; +/* IRC config, color section */ + +struct t_config_option *irc_config_color_input_nick; + /* IRC config, network section */ struct t_config_option *irc_config_network_default_msg_part; @@ -208,6 +212,22 @@ irc_config_change_look_highlight_tags (void *data, } /* + * irc_config_change_color_input_nick: called when the color of input nick is + * changed + */ + +void +irc_config_change_color_input_nick (void *data, + struct t_config_option *option) +{ + /* make C compiler happy */ + (void) data; + (void) option; + + weechat_bar_item_update ("input_prompt"); +} + +/* * irc_config_change_network_away_check: called when away check is changed */ @@ -1110,6 +1130,25 @@ irc_config_init () N_("display notices as private messages"), NULL, 0, 0, "off", NULL, NULL, NULL, NULL, NULL, NULL, NULL); + /* color */ + ptr_section = weechat_config_new_section (irc_config_file, "color", + 0, 0, + NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL); + if (!ptr_section) + { + weechat_config_free (irc_config_file); + return 0; + } + + irc_config_color_input_nick = weechat_config_new_option ( + irc_config_file, ptr_section, + "input_nick", "color", + N_("color for nick in input bar"), + NULL, -1, 0, "lightcyan", NULL, NULL, NULL, + &irc_config_change_color_input_nick, NULL, NULL, NULL); + /* network */ ptr_section = weechat_config_new_section (irc_config_file, "network", 0, 0, |