summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-bar-item.c2
-rw-r--r--src/plugins/irc/irc-color.h1
-rw-r--r--src/plugins/irc/irc-config.c53
-rw-r--r--src/plugins/irc/irc-config.h1
4 files changed, 18 insertions, 39 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index a37e800da..3306efbf0 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -491,7 +491,7 @@ irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item,
IRC_COLOR_INPUT_NICK,
server->nick,
IRC_COLOR_BAR_DELIM,
- IRC_COLOR_BAR_FG,
+ IRC_COLOR_ITEM_NICK_MODES,
server->nick_modes,
IRC_COLOR_BAR_DELIM);
}
diff --git a/src/plugins/irc/irc-color.h b/src/plugins/irc/irc-color.h
index 8c7e14b3a..287b1090a 100644
--- a/src/plugins/irc/irc-color.h
+++ b/src/plugins/irc/irc-color.h
@@ -93,6 +93,7 @@
#define IRC_COLOR_ITEM_CHANNEL_MODES weechat_color(weechat_config_string(irc_config_color_item_channel_modes))
#define IRC_COLOR_ITEM_LAG_COUNTING weechat_color(weechat_config_string(irc_config_color_item_lag_counting))
#define IRC_COLOR_ITEM_LAG_FINISHED weechat_color(weechat_config_string(irc_config_color_item_lag_finished))
+#define IRC_COLOR_ITEM_NICK_MODES weechat_color(weechat_config_string(irc_config_color_item_nick_modes))
struct t_irc_color_ansi_state
{
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 9ad03f6a6..f5a48cc4f 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -111,6 +111,7 @@ 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_lag_counting;
struct t_config_option *irc_config_color_item_lag_finished;
+struct t_config_option *irc_config_color_item_nick_modes;
struct t_config_option *irc_config_color_message_join;
struct t_config_option *irc_config_color_message_quit;
struct t_config_option *irc_config_color_mirc_remap;
@@ -459,36 +460,6 @@ irc_config_change_look_item_channel_modes_hide_key (void *data,
}
/*
- * Callback for changes on option "irc.look.item_nick_modes".
- */
-
-void
-irc_config_change_look_item_nick_modes (void *data,
- struct t_config_option *option)
-{
- /* make C compiler happy */
- (void) data;
- (void) option;
-
- weechat_bar_item_update ("input_prompt");
-}
-
-/*
- * Callback for changes on option "irc.look.item_nick_prefix".
- */
-
-void
-irc_config_change_look_item_nick_prefix (void *data,
- struct t_config_option *option)
-{
- /* make C compiler happy */
- (void) data;
- (void) option;
-
- weechat_bar_item_update ("input_prompt");
-}
-
-/*
* Callback for changes on option "irc.look.highlight_tags_restrict".
*/
@@ -647,12 +618,12 @@ irc_config_change_look_topic_strip_colors (void *data,
}
/*
- * Callback for changes on option "irc.color.input_nick".
+ * Callback for changes on an option affecting bar item "input_prompt".
*/
void
-irc_config_change_color_input_nick (void *data,
- struct t_config_option *option)
+irc_config_change_bar_item_input_prompt (void *data,
+ struct t_config_option *option)
{
/* make C compiler happy */
(void) data;
@@ -2402,15 +2373,15 @@ irc_config_init ()
irc_config_look_item_nick_modes = weechat_config_new_option (
irc_config_file, ptr_section,
"item_nick_modes", "boolean",
- N_("display nick modes in \"input_prompt\" bar item"),
+ N_("display nick modes in bar item \"input_prompt\""),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
- &irc_config_change_look_item_nick_modes, NULL, NULL, NULL);
+ &irc_config_change_bar_item_input_prompt, NULL, NULL, NULL);
irc_config_look_item_nick_prefix = weechat_config_new_option (
irc_config_file, ptr_section,
"item_nick_prefix", "boolean",
- N_("display nick prefix in \"input_prompt\" bar item"),
+ N_("display nick prefix in bar item \"input_prompt\""),
NULL, 0, 0, "on", NULL, 0, NULL, NULL,
- &irc_config_change_look_item_nick_prefix, NULL, NULL, NULL);
+ &irc_config_change_bar_item_input_prompt, NULL, NULL, NULL);
irc_config_look_msgbuffer_fallback = weechat_config_new_option (
irc_config_file, ptr_section,
"msgbuffer_fallback", "integer",
@@ -2640,7 +2611,7 @@ irc_config_init ()
"input_nick", "color",
N_("color for nick in input bar"),
NULL, -1, 0, "lightcyan", NULL, 0, NULL, NULL,
- &irc_config_change_color_input_nick, NULL, NULL, NULL);
+ &irc_config_change_bar_item_input_prompt, NULL, NULL, NULL);
irc_config_color_item_away = weechat_config_new_option (
irc_config_file, ptr_section,
"item_away", "color",
@@ -2666,6 +2637,12 @@ irc_config_init ()
N_("color for lag indicator, when pong has been received from server"),
NULL, -1, 0, "yellow", NULL, 0, NULL, NULL,
&irc_config_change_color_item_lag, NULL, NULL, NULL);
+ irc_config_color_item_nick_modes = weechat_config_new_option (
+ irc_config_file, ptr_section,
+ "item_nick_modes", "color",
+ N_("color for nick modes in bar item \"input_prompt\""),
+ NULL, -1, 0, "default", NULL, 0, NULL, NULL,
+ &irc_config_change_bar_item_input_prompt, NULL, NULL, NULL);
irc_config_color_message_join = weechat_config_new_option (
irc_config_file, ptr_section,
"message_join", "color",
diff --git a/src/plugins/irc/irc-config.h b/src/plugins/irc/irc-config.h
index cd9c2f042..e059ce8f0 100644
--- a/src/plugins/irc/irc-config.h
+++ b/src/plugins/irc/irc-config.h
@@ -157,6 +157,7 @@ extern struct t_config_option *irc_config_color_item_away;
extern struct t_config_option *irc_config_color_item_channel_modes;
extern struct t_config_option *irc_config_color_item_lag_counting;
extern struct t_config_option *irc_config_color_item_lag_finished;
+extern struct t_config_option *irc_config_color_item_nick_modes;
extern struct t_config_option *irc_config_color_message_join;
extern struct t_config_option *irc_config_color_message_quit;
extern struct t_config_option *irc_config_color_mirc_remap;