From 261cbdae0df74061c65168257afb6092e06b31f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 14 Jun 2018 22:22:06 +0200 Subject: [PATCH] core: change default value of option weechat.look.hotlist_add_conditions (closes #1206) Now if there are at least one relay client connected via weechat protocol, the buffer is always added to the hotlist. --- ChangeLog.adoc | 1 + doc/de/autogen/user/weechat_options.adoc | 2 +- doc/en/autogen/user/weechat_options.adoc | 2 +- doc/fr/autogen/user/weechat_options.adoc | 2 +- doc/it/autogen/user/weechat_options.adoc | 2 +- doc/ja/autogen/user/weechat_options.adoc | 2 +- doc/pl/autogen/user/weechat_options.adoc | 2 +- po/cs.po | 5 +++-- po/de.po | 6 ++++-- po/es.po | 5 +++-- po/fr.po | 10 ++++++---- po/hu.po | 5 +++-- po/it.po | 5 +++-- po/ja.po | 6 ++++-- po/pl.po | 6 ++++-- po/pt.po | 6 ++++-- po/pt_BR.po | 5 +++-- po/ru.po | 5 +++-- po/tr.po | 5 +++-- po/weechat.pot | 5 +++-- src/core/wee-config.c | 11 ++++++++--- 21 files changed, 61 insertions(+), 37 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index e1638260c..cbd14edbc 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] New features:: + * core: change default value of option weechat.look.hotlist_add_conditions to check connected relay clients via weechat protocol (issue #1206) * core: add reverse of string in evaluation of expressions with "rev:" (issue #1200) * core: send buffer pointer (when possible) in signal "hotlist_changed" (issue #1133) * core: add support of list options in curl (issue #826, issue #219) diff --git a/doc/de/autogen/user/weechat_options.adoc b/doc/de/autogen/user/weechat_options.adoc index ef53166a7..34c12dc43 100644 --- a/doc/de/autogen/user/weechat_options.adoc +++ b/doc/de/autogen/user/weechat_options.adoc @@ -732,7 +732,7 @@ ** Beschreibung: pass:none[Bedingungen um einen Buffer in die Hotlist einzutragen (sofern der Notify-Level für den Buffer korrekt ist); es können folgende Bedingungen genutzt werden: "window" (zur Zeit genutzter Window-Pointer), "buffer" (Buffer-Pointer welcher zur Hotlist hinzugefügt werden soll), "priority" (0 = niedrig, 1 = Nachricht, 2 = Privat, 3 = Highlight); standardmäßig wird ein Buffer in die Hotlist eingetragen falls man abwesend sein sollte oder falls der Buffer nicht auf dem Bildschirm sichtbar ist (Buffer wird nicht in einem Fenster dargestellt)] ** Typ: Zeichenkette ** Werte: beliebige Zeichenkette -** Standardwert: `+"${away} || ${buffer.num_displayed} == 0"+` +** Standardwert: `+"${away} || ${buffer.num_displayed} == 0 || ${info:relay_client_count,weechat,connected} > 0"+` * [[option_weechat.look.hotlist_buffer_separator]] *weechat.look.hotlist_buffer_separator* ** Beschreibung: pass:none[Zeichen welches zum Trennen zwischen den verschiedenen Buffern in der Hotlist genutzt werden soll] diff --git a/doc/en/autogen/user/weechat_options.adoc b/doc/en/autogen/user/weechat_options.adoc index c7f7a8e2a..fc11dd8f0 100644 --- a/doc/en/autogen/user/weechat_options.adoc +++ b/doc/en/autogen/user/weechat_options.adoc @@ -732,7 +732,7 @@ ** description: pass:none[conditions to add a buffer in hotlist (if notify level is OK for the buffer); you can use in these conditions: "window" (current window pointer), "buffer" (buffer pointer to add in hotlist), "priority" (0 = low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added to hotlist if you are away, or if the buffer is not visible on screen (not displayed in any window)] ** type: string ** values: any string -** default value: `+"${away} || ${buffer.num_displayed} == 0"+` +** default value: `+"${away} || ${buffer.num_displayed} == 0 || ${info:relay_client_count,weechat,connected} > 0"+` * [[option_weechat.look.hotlist_buffer_separator]] *weechat.look.hotlist_buffer_separator* ** description: pass:none[string displayed between buffers in hotlist] diff --git a/doc/fr/autogen/user/weechat_options.adoc b/doc/fr/autogen/user/weechat_options.adoc index e8290d20f..2a7628456 100644 --- a/doc/fr/autogen/user/weechat_options.adoc +++ b/doc/fr/autogen/user/weechat_options.adoc @@ -732,7 +732,7 @@ ** description: pass:none[conditions pour ajouter un tampon dans la hotlist (si le niveau de notification est OK pour le tampon) ; vous pouvez utiliser dans ces conditions : \"window\" (pointeur de la fenêtre courante), \"buffer\" (pointeur du tampon à ajouter dans la hotlist), "priority" (0 = faible, 1 = message, 2 = privé, 3 = highlight) ; par défaut un tampon est ajouté dans la hotlist si vous êtes absent, ou si le tampon n'est pas visible à l'écran (pas affiché dans une fenêtre)] ** type: chaîne ** valeurs: toute chaîne -** valeur par défaut: `+"${away} || ${buffer.num_displayed} == 0"+` +** valeur par défaut: `+"${away} || ${buffer.num_displayed} == 0 || ${info:relay_client_count,weechat,connected} > 0"+` * [[option_weechat.look.hotlist_buffer_separator]] *weechat.look.hotlist_buffer_separator* ** description: pass:none[chaîne affichée entre les tampons dans la hotlist] diff --git a/doc/it/autogen/user/weechat_options.adoc b/doc/it/autogen/user/weechat_options.adoc index add352f19..542b19b83 100644 --- a/doc/it/autogen/user/weechat_options.adoc +++ b/doc/it/autogen/user/weechat_options.adoc @@ -732,7 +732,7 @@ ** descrizione: pass:none[conditions to add a buffer in hotlist (if notify level is OK for the buffer); you can use in these conditions: "window" (current window pointer), "buffer" (buffer pointer to add in hotlist), "priority" (0 = low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added to hotlist if you are away, or if the buffer is not visible on screen (not displayed in any window)] ** tipo: stringa ** valori: qualsiasi stringa -** valore predefinito: `+"${away} || ${buffer.num_displayed} == 0"+` +** valore predefinito: `+"${away} || ${buffer.num_displayed} == 0 || ${info:relay_client_count,weechat,connected} > 0"+` * [[option_weechat.look.hotlist_buffer_separator]] *weechat.look.hotlist_buffer_separator* ** descrizione: pass:none[stringa mostrata tra i buffer nella hotlist] diff --git a/doc/ja/autogen/user/weechat_options.adoc b/doc/ja/autogen/user/weechat_options.adoc index 512ff7bcc..e3a4e3e37 100644 --- a/doc/ja/autogen/user/weechat_options.adoc +++ b/doc/ja/autogen/user/weechat_options.adoc @@ -732,7 +732,7 @@ ** 説明: pass:none[ホットリストでバッファを追加する条件 (追加するバッファの通知レベルが OK の場合); 以下の条件を使うことができます: "window" (現在のウィンドウポインタ)、"buffer" (ホットリストに追加するバッファポインタ)、"priority" (0 = 低い、1 = メッセージ、2 = プライベートメッセージ、3 = ハイライト); デフォルトでは離席状態またはバッファが画面に表示されていない場合にホットリストへバッファを追加します] ** タイプ: 文字列 ** 値: 未制約文字列 -** デフォルト値: `+"${away} || ${buffer.num_displayed} == 0"+` +** デフォルト値: `+"${away} || ${buffer.num_displayed} == 0 || ${info:relay_client_count,weechat,connected} > 0"+` * [[option_weechat.look.hotlist_buffer_separator]] *weechat.look.hotlist_buffer_separator* ** 説明: pass:none[ホットリストにあるバッファの間に表示される文字列] diff --git a/doc/pl/autogen/user/weechat_options.adoc b/doc/pl/autogen/user/weechat_options.adoc index 62c7476af..a5ad6388f 100644 --- a/doc/pl/autogen/user/weechat_options.adoc +++ b/doc/pl/autogen/user/weechat_options.adoc @@ -732,7 +732,7 @@ ** opis: pass:none[warunki dla dodania buforu na hotlistę (jeśli poziom powiadomień jest OK dla bufora); możesz użyć następujących warunków: "window" (wskaźnik obecnego okna), "buffer" (wskaźnik bufora do dodania na hotlistę), "priority" (0 = niski, 1 = wiadomość, 2 = rozmowa prywatna, 3 = highlight); domyślnie bufor jest dodawany do hotlisty jeśli jesteś niedostępny lub jeśli bufor nie jest widoczny na ekranie (nie jest wyświetlany w żadnym oknie)] ** typ: ciąg ** wartości: dowolny ciąg -** domyślna wartość: `+"${away} || ${buffer.num_displayed} == 0"+` +** domyślna wartość: `+"${away} || ${buffer.num_displayed} == 0 || ${info:relay_client_count,weechat,connected} > 0"+` * [[option_weechat.look.hotlist_buffer_separator]] *weechat.look.hotlist_buffer_separator* ** opis: pass:none[ciąg znaków wyświetlany pomiędzy buforami w hotliście] diff --git a/po/cs.po b/po/cs.po index e0c337702..e63badb4c 100644 --- a/po/cs.po +++ b/po/cs.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-03-31 15:36+0200\n" "Last-Translator: Ondřej Súkup \n" "Language-Team: weechat-dev \n" @@ -3177,7 +3177,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" msgid "string displayed between buffers in hotlist" diff --git a/po/de.po b/po/de.po index 3b771f9e2..de7e8b847 100644 --- a/po/de.po +++ b/po/de.po @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-06-02 19:45+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -3805,13 +3805,15 @@ msgstr "" "\"irc_notice+nick_toto*\" für Notice-Nachrichten von Nicks, die mit \"toto\" " "beginnen" +#, fuzzy msgid "" "conditions to add a buffer in hotlist (if notify level is OK for the " "buffer); you can use in these conditions: \"window\" (current window " "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" "Bedingungen um einen Buffer in die Hotlist einzutragen (sofern der Notify-" "Level für den Buffer korrekt ist); es können folgende Bedingungen genutzt " diff --git a/po/es.po b/po/es.po index 9e5a4474b..a0ad2ee8b 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-03-31 15:36+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -3314,7 +3314,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" msgid "string displayed between buffers in hotlist" diff --git a/po/fr.po b/po/fr.po index 23a5fd69c..846caffc4 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" -"PO-Revision-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" +"PO-Revision-Date: 2018-06-14 22:03+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -3709,7 +3709,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" "conditions pour ajouter un tampon dans la hotlist (si le niveau de " "notification est OK pour le tampon) ; vous pouvez utiliser dans ces " @@ -3717,7 +3718,8 @@ msgstr "" "\" (pointeur du tampon à ajouter dans la hotlist), \"priority\" (0 = faible, " "1 = message, 2 = privé, 3 = highlight) ; par défaut un tampon est ajouté " "dans la hotlist si vous êtes absent, ou si le tampon n'est pas visible à " -"l'écran (pas affiché dans une fenêtre)" +"l'écran (pas affiché dans une fenêtre), ou si au moins un client relay est " +"connecté via le protocole weechat" msgid "string displayed between buffers in hotlist" msgstr "chaîne affichée entre les tampons dans la hotlist" diff --git a/po/hu.po b/po/hu.po index 4fc3bbcc5..14b52b65c 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-03-31 15:36+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -2774,7 +2774,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" #, fuzzy diff --git a/po/it.po b/po/it.po index 1577559ec..5f4af173d 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-03-31 15:36+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -3412,7 +3412,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" msgid "string displayed between buffers in hotlist" diff --git a/po/ja.po b/po/ja.po index b1af6ad7c..a32a9833e 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-06-11 09:00+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" "Language-Team: Polish <>\n" @@ -3655,13 +3655,15 @@ msgstr "" "\"irc_notice+nick_toto*\" dla powiadomień od nicka zaczynającego się na " "\"toto\"" +#, fuzzy msgid "" "conditions to add a buffer in hotlist (if notify level is OK for the " "buffer); you can use in these conditions: \"window\" (current window " "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" "warunki dla dodania buforu na hotlistę (jeśli poziom powiadomień jest OK dla " "bufora); możesz użyć następujących warunków: \"window\" (wskaźnik obecnego " diff --git a/po/pt.po b/po/pt.po index b9982389f..f987eaa27 100644 --- a/po/pt.po +++ b/po/pt.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-03-31 15:36+0200\n" "Last-Translator: Vasco Almeida \n" "Language-Team: Portuguese <>\n" @@ -3618,13 +3618,15 @@ msgstr "" "exemplos: \"nick_flashcode\" para mensagens do nick \"FlashCode\", " "\"irc_notice+nick_toto*\" para os notices do nick começado com \"toto\"" +#, fuzzy msgid "" "conditions to add a buffer in hotlist (if notify level is OK for the " "buffer); you can use in these conditions: \"window\" (current window " "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" "condições para adicionar um buffer à hotlist (se o nível de notificação do " "buffer for OK); pode utilizar as seguintes condições: \"window\" (ponteiro " diff --git a/po/pt_BR.po b/po/pt_BR.po index 91498f150..adc669684 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-03-31 15:37+0200\n" "Last-Translator: Eduardo Elias \n" "Language-Team: weechat-dev \n" @@ -3344,7 +3344,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" msgid "string displayed between buffers in hotlist" diff --git a/po/ru.po b/po/ru.po index 95961b6c2..355b2e343 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2018-03-31 15:37+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -2800,7 +2800,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" #, fuzzy diff --git a/po/tr.po b/po/tr.po index 6929d13dd..03ecd753c 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2017-06-26 23:33+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -2524,7 +2524,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" msgid "string displayed between buffers in hotlist" diff --git a/po/weechat.pot b/po/weechat.pot index a67687804..7d5488aca 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2018-06-14 21:51+0200\n" +"POT-Creation-Date: 2018-06-14 22:01+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -2520,7 +2520,8 @@ msgid "" "pointer), \"buffer\" (buffer pointer to add in hotlist), \"priority\" (0 = " "low, 1 = message, 2 = private, 3 = highlight); by default a buffer is added " "to hotlist if you are away, or if the buffer is not visible on screen (not " -"displayed in any window)" +"displayed in any window), or if at least one relay client is connected via " +"the weechat protocol" msgstr "" msgid "string displayed between buffers in hotlist" diff --git a/src/core/wee-config.c b/src/core/wee-config.c index a44e0b80f..c2ae20bc7 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -2868,9 +2868,14 @@ config_weechat_init_options () "the buffer); you can use in these conditions: \"window\" (current " "window pointer), \"buffer\" (buffer pointer to add in hotlist), " "\"priority\" (0 = low, 1 = message, 2 = private, 3 = highlight); " - "by default a buffer is added to hotlist if you are away, or if the " - "buffer is not visible on screen (not displayed in any window)"), - NULL, 0, 0, "${away} || ${buffer.num_displayed} == 0", + "by default a buffer is added to hotlist if you are away, or " + "if the buffer is not visible on screen (not displayed in any " + "window), or if at least one relay client is connected via the " + "weechat protocol"), + NULL, 0, 0, + "${away} " + "|| ${buffer.num_displayed} == 0 " + "|| ${info:relay_client_count,weechat,connected} > 0", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); config_look_hotlist_buffer_separator = config_file_new_option (