mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05: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:
@@ -51,6 +51,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
weechat.look.buffer_time_format is not an empty string
|
||||
* core: fix translation of message displayed after /upgrade
|
||||
* api: fix crash when reading config options with NULL value (closes #238)
|
||||
* irc: use option irc.look.nick_mode_empty to display nick prefix in bar item
|
||||
"input_prompt"
|
||||
* irc: remove IRC color codes from buffer title in channels (closes #237)
|
||||
* irc: add tag "nick_xxx" in invite messages
|
||||
* irc: fix completion of commands /msg, /notice and /query
|
||||
|
||||
@@ -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