diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-04 21:00:25 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-04 21:00:25 +0100 |
commit | d9a49db454d5855dc24b4d26efdce20b593c90a4 (patch) | |
tree | 892253f985005dc51b48dba5a800d5e36d942da7 /src/plugins | |
parent | 96325f913deca16a5dd4b50997a4d0b1777aa370 (diff) | |
download | weechat-d9a49db454d5855dc24b4d26efdce20b593c90a4.zip |
irc: use option irc.look.nick_mode_empty to display nick prefix in bar item "input_prompt"
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-bar-item.c | 3 | ||||
-rw-r--r-- | src/plugins/irc/irc-config.c | 2 |
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", |