summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-bar-item.c3
-rw-r--r--src/plugins/irc/irc-config.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index 62af8e6d0..f4dcf1d43 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -461,7 +461,8 @@ irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item,
ptr_nick = irc_nick_search (server, channel, server->nick);
if (ptr_nick)
{
- if (ptr_nick->prefix[0] != ' ')
+ if (weechat_config_boolean (irc_config_look_nick_mode_empty)
+ || (ptr_nick->prefix[0] != ' '))
{
snprintf (str_prefix, sizeof (str_prefix), "%s%s",
weechat_color (
diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c
index 27dc6c471..81c4742ab 100644
--- a/src/plugins/irc/irc-config.c
+++ b/src/plugins/irc/irc-config.c
@@ -2592,7 +2592,7 @@ irc_config_init ()
N_("display a space if nick mode is enabled but nick has no mode (not "
"op, voice, ...)"),
NULL, 0, 0, "off", NULL, 0, NULL, NULL,
- NULL, NULL, NULL, NULL);
+ &irc_config_change_bar_item_input_prompt, NULL, NULL, NULL);
irc_config_look_notice_as_pv = weechat_config_new_option (
irc_config_file, ptr_section,
"notice_as_pv", "integer",