1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

buflist: add option buflist.format.nick_prefix

This commit is contained in:
Sébastien Helleu
2017-04-25 20:31:08 +02:00
parent 49cdbaab38
commit a10b2bc36a
17 changed files with 190 additions and 22 deletions
+11 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-01-06 21:59+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4931,6 +4931,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5054,6 +5058,12 @@ msgid ""
"help buflist)"
msgstr "příkaz spuštěný při startu WeeChat, před načtením pluginů"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr "příkaz spuštěný při startu WeeChat, před načtením pluginů"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+13 -1
View File
@@ -19,7 +19,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-04-24 22:21+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -5785,6 +5785,7 @@ msgstr "Liste von Buffern"
msgid "bar item with list of buffers"
msgstr "Bar-Item mit der Liste von Buffern"
#, fuzzy
msgid ""
"refresh: force the refresh of the \"buflist\" bar item\n"
"\n"
@@ -5813,6 +5814,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -6011,6 +6016,13 @@ msgstr ""
"Format für die Anzeige der Verzögerungsanzeige für IRC Serverbuffer "
"(Hinweis: Inhalt wird evaluiert, siehe /help buflist)"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
"Format der Hotlist (Hinweis: Inhalt wird evaluiert, siehe /help buflist)"
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
"evaluated, see /help buflist)"
+11 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-01-06 22:01+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5144,6 +5144,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5267,6 +5271,12 @@ msgid ""
"help buflist)"
msgstr "comando ejecutado cuando WeeChat inicia, antes de cargar los plugins"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr "comando ejecutado cuando WeeChat inicia, antes de cargar los plugins"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+18 -3
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"PO-Revision-Date: 2017-04-24 22:35+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-04-25 20:30+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -5686,6 +5686,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5727,7 +5731,11 @@ msgstr ""
"tampons\n"
" - ${indent} : indentation pour le nom (les tampons de canaux ou privés "
"sont indentés) (évaluation de l'option buflist.format.indent)\n"
" - ${nick_prefix} : le préfixe du pseudo pour un cancl (défini seulement "
" - ${format_nick_prefix} : le préfixe du pseudo en couleur pour un canal "
"(évaluation de l'option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix} : la couleur du préfixe du pseudo pour un canal "
"(défini seulement si l'option buflist.look.nick_prefix est activée)\n"
" - ${nick_prefix} : le préfixe du pseudo pour un canal (défini seulement "
"si l'option buflist.look.nick_prefix est activée)\n"
" - ${name} : le nom court (si défini), sinon le nom\n"
" - ${color_hotlist} : la couleur qui dépend du niveau de hotlist le plus "
@@ -5881,6 +5889,13 @@ msgstr ""
"format pour le lag sur un tampon de serveur IRC (note : le contenu est "
"évalué, voir /help buflist)"
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
"format pour un préfixe de pseudo sur un canal (note : le contenu est évalué, "
"voir /help buflist)"
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
"evaluated, see /help buflist)"
+11 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-01-06 22:03+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4468,6 +4468,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -4589,6 +4593,12 @@ msgid ""
"help buflist)"
msgstr "felhasználónév az IRC szerveren"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr "felhasználónév az IRC szerveren"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+13 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-01-06 22:04+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5282,6 +5282,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5427,6 +5431,14 @@ msgstr ""
"password per il server (nota: il contenuto viene valutato, consultare /help "
"eval)"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
"password per il server (nota: il contenuto viene valutato, consultare /help "
"eval)"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+13 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-04-23 09:00+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -5423,6 +5423,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5614,6 +5618,14 @@ msgstr ""
"IRC サーババッファの遅延時間の表示書式 (注意: 値は評価されます、/help eval を"
"参照してください)"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
"ホットリストの表示書式 (注意: 値は評価されます、/help eval を参照してくださ"
"い)"
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
"evaluated, see /help buflist)"
+12 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-04-08 14:49+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5536,6 +5536,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5677,6 +5681,13 @@ msgid ""
msgstr ""
"hasło dla serwera (uwaga: zawartość jest przetwarzana, zobacz /help eval)"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
"hasło dla serwera (uwaga: zawartość jest przetwarzana, zobacz /help eval)"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+12 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-04-08 14:50+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -5538,6 +5538,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5676,6 +5680,13 @@ msgid ""
msgstr ""
"palavra-passe para o servidor (nota: o conteúdo é avaliado, ver /help eval)"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
"palavra-passe para o servidor (nota: o conteúdo é avaliado, ver /help eval)"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+13 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2016-09-03 08:24+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5084,6 +5084,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -5229,6 +5233,14 @@ msgstr ""
"comando executado quando o WeeChat inicia, antes do carregamento dos plugins "
"(nota: conteúdo é avaliado, veja /help eval)"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
"comando executado quando o WeeChat inicia, antes do carregamento dos plugins "
"(nota: conteúdo é avaliado, veja /help eval)"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+11 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-01-06 22:06+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4506,6 +4506,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -4627,6 +4631,12 @@ msgid ""
"help buflist)"
msgstr "ник, используемый на IRC сервере"
#, fuzzy
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr "ник, используемый на IRC сервере"
#, fuzzy
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
+10 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2017-01-06 22:07+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4071,6 +4071,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -4182,6 +4186,11 @@ msgid ""
"help buflist)"
msgstr ""
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
"evaluated, see /help buflist)"
+10 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2017-04-24 22:34+0200\n"
"POT-Creation-Date: 2017-04-25 19:42+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4056,6 +4056,10 @@ msgid ""
"and 99 buffers\n"
" - ${indent}: indentation for name (channel and private buffers are "
"indented) (evaluation of option buflist.format.indent)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel (evaluation "
"of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel (set only if "
"the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel (set only if the option "
"buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the name\n"
@@ -4167,6 +4171,11 @@ msgid ""
"help buflist)"
msgstr ""
msgid ""
"format for nick prefix on a channel (note: content is evaluated, see /help "
"buflist)"
msgstr ""
msgid ""
"format for buffer number, ${number} is the indented number (note: content is "
"evaluated, see /help buflist)"
+14 -4
View File
@@ -54,7 +54,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
struct t_gui_hotlist *ptr_hotlist;
char **buflist, *str_buflist, *condition;
char str_format_number[32], str_format_number_empty[32];
char str_nick_prefix[32];
char str_nick_prefix[32], str_color_nick_prefix[32];
char str_number[32], *line, **hotlist, *str_hotlist;
char str_hotlist_count[32];
const char *ptr_format, *ptr_format_current, *ptr_format_indent;
@@ -172,6 +172,7 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
/* nick prefix */
str_nick_prefix[0] = '\0';
str_color_nick_prefix[0] = '\0';
if (is_channel
&& weechat_config_boolean (buflist_config_look_nick_prefix))
{
@@ -190,12 +191,15 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
ptr_buffer, ptr_gui_nick, "prefix");
if (ptr_nick_prefix && (ptr_nick_prefix[0] != ' '))
{
snprintf (str_nick_prefix, sizeof (str_nick_prefix),
"%s%s",
snprintf (str_color_nick_prefix,
sizeof (str_color_nick_prefix),
"%s",
weechat_color (
weechat_nicklist_nick_get_string (
ptr_buffer, ptr_gui_nick,
"prefix_color")),
"prefix_color")));
snprintf (str_nick_prefix, sizeof (str_nick_prefix),
"%s",
ptr_nick_prefix);
}
}
@@ -203,6 +207,12 @@ buflist_bar_item_buflist_cb (const void *pointer, void *data,
}
weechat_hashtable_set (buflist_hashtable_extra_vars,
"nick_prefix", str_nick_prefix);
weechat_hashtable_set (buflist_hashtable_extra_vars,
"color_nick_prefix", str_color_nick_prefix);
weechat_hashtable_set (buflist_hashtable_extra_vars,
"format_nick_prefix",
weechat_config_string (
buflist_config_format_nick_prefix));
/* set extra variables */
weechat_hashtable_set (buflist_hashtable_extra_vars,
+6 -2
View File
@@ -100,8 +100,12 @@ buflist_command_init ()
" - ${indent}: indentation for name (channel and private "
"buffers are indented) (evaluation of "
"option buflist.format.indent)\n"
" - ${nick_prefix}: nick prefix for a channel (set only "
"if the option buflist.look.nick_prefix is enabled)\n"
" - ${format_nick_prefix}: colored nick prefix for a channel "
"(evaluation of option buflist.format.nick_prefix)\n"
" - ${color_nick_prefix}: color of nick prefix for a channel "
"(set only if the option buflist.look.nick_prefix is enabled)\n"
" - ${nick_prefix}: nick prefix for a channel "
"(set only if the option buflist.look.nick_prefix is enabled)\n"
" - ${name}: the short name (if set), with a fallback on the "
"name\n"
" - ${color_hotlist}: the color depending on the highest "
+11 -1
View File
@@ -51,6 +51,7 @@ struct t_config_option *buflist_config_format_hotlist_level_none;
struct t_config_option *buflist_config_format_hotlist_separator;
struct t_config_option *buflist_config_format_indent;
struct t_config_option *buflist_config_format_lag;
struct t_config_option *buflist_config_format_nick_prefix;
struct t_config_option *buflist_config_format_number;
struct t_hook **buflist_config_signals_refresh = NULL;
@@ -395,7 +396,7 @@ buflist_config_init ()
N_("format of each line with a buffer "
"(note: content is evaluated, see /help buflist)"),
NULL, 0, 0,
"${format_number}${indent}${nick_prefix}${color_hotlist}${name}",
"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}",
NULL, 0,
NULL, NULL, NULL,
&buflist_config_change_buflist, NULL, NULL,
@@ -494,6 +495,15 @@ buflist_config_init ()
NULL, NULL, NULL,
&buflist_config_change_buflist, NULL, NULL,
NULL, NULL, NULL);
buflist_config_format_nick_prefix = weechat_config_new_option (
buflist_config_file, ptr_section,
"nick_prefix", "string",
N_("format for nick prefix on a channel "
"(note: content is evaluated, see /help buflist)"),
NULL, 0, 0, "${color_nick_prefix}${nick_prefix}", NULL, 0,
NULL, NULL, NULL,
&buflist_config_change_buflist, NULL, NULL,
NULL, NULL, NULL);
buflist_config_format_number = weechat_config_new_option (
buflist_config_file, ptr_section,
"number", "string",
+1
View File
@@ -49,6 +49,7 @@ extern struct t_config_option *buflist_config_format_hotlist_level_none;
extern struct t_config_option *buflist_config_format_hotlist_separator;
extern struct t_config_option *buflist_config_format_indent;
extern struct t_config_option *buflist_config_format_lag;
extern struct t_config_option *buflist_config_format_nick_prefix;
extern struct t_config_option *buflist_config_format_number;
extern char **buflist_config_sort_fields;