1
0
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:
Sébastien Helleu
2014-11-04 21:00:25 +01:00
parent 96325f913d
commit d9a49db454
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -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
+2 -1
View File
@@ -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 (
+1 -1
View File
@@ -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",