summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-bar-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-bar-item.c')
-rw-r--r--src/plugins/irc/irc-bar-item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index 285e45693..5025f2a44 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -423,7 +423,8 @@ irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item,
/* build prefix */
str_prefix[0] = '\0';
- if (channel)
+ if (weechat_config_boolean (irc_config_look_item_nick_prefix)
+ && channel)
{
ptr_nick = irc_nick_search (channel, server->nick);
if (ptr_nick)