summaryrefslogtreecommitdiff
path: root/src/plugins/buflist
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r--src/plugins/buflist/buflist-bar-item.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c
index 39c6e5129..25b11a5d4 100644
--- a/src/plugins/buflist/buflist-bar-item.c
+++ b/src/plugins/buflist/buflist-bar-item.c
@@ -171,6 +171,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
snprintf (str_indent_name, sizeof (str_indent_name), " ");
/* nick prefix */
+ str_nick_prefix[0] = '\0';
if (is_channel
&& weechat_config_boolean (buflist_config_look_nick_prefix))
{
@@ -199,14 +200,9 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
}
}
}
- weechat_hashtable_set (buflist_hashtable_extra_vars,
- "nick_prefix", str_nick_prefix);
- }
- else
- {
- weechat_hashtable_set (buflist_hashtable_extra_vars,
- "nick_prefix", "");
}
+ weechat_hashtable_set (buflist_hashtable_extra_vars,
+ "nick_prefix", str_nick_prefix);
/* set extra variables */
weechat_hashtable_set (buflist_hashtable_extra_vars,