mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
irc: use option irc.look.nick_mode_empty to display nick prefix in bar item "input_prompt"
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user