]> jfr.im git - irc/weechat/weechat.git/commitdiff
core: add option `add` in command `/hotlist`
authorSébastien Helleu <redacted>
Sun, 25 Dec 2022 18:40:57 +0000 (19:40 +0100)
committerSébastien Helleu <redacted>
Sun, 25 Dec 2022 18:40:57 +0000 (19:40 +0100)
27 files changed:
doc/de/includes/autogen_user_commands.de.adoc
doc/en/includes/autogen_user_commands.en.adoc
doc/fr/includes/autogen_user_commands.fr.adoc
doc/it/includes/autogen_user_commands.it.adoc
doc/ja/includes/autogen_user_commands.ja.adoc
doc/pl/includes/autogen_user_commands.pl.adoc
doc/sr/includes/autogen_user_commands.sr.adoc
po/cs.po
po/de.po
po/es.po
po/fr.po
po/hu.po
po/it.po
po/ja.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ru.po
po/sr.po
po/tr.po
po/weechat.pot
src/core/wee-command.c
src/core/wee-upgrade.c
src/gui/gui-buffer.c
src/gui/gui-hotlist.c
src/gui/gui-hotlist.h
src/gui/gui-line.c

index 491d5755b685078a6ff6b9d3b08e7b603d27cbb5..aa6a9a884b0236ef5458f22234a94cf6d8b9aa19 100644 (file)
@@ -1613,13 +1613,15 @@ value: Anzahl der gewünschten Einträgen im Befehlsverlauf anzeigen
 * `+hotlist+`: manage hotlist
 
 ----
-/hotlist  clear [<level>]
+/hotlist  add [low|message|private|highlight]
+          clear [<level>]
           remove
           restore [-all]
 
-clear: clear hotlist
-level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
-remove: remove current buffer from hotlist
+    add: add current buffer in hotlist (default level: "low", conditions defined in option weechat.look.hotlist_add_conditions are NOT checked)
+  clear: clear hotlist
+  level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
+ remove: remove current buffer from hotlist
 restore: restore latest hotlist removed in the current buffer (or all buffers with -all)
 ----
 
index 9be81508cfa810f71f559363971432f460d899f1..75a1e6aa048c0738e09d8b1075991bf1ad6032b3 100644 (file)
@@ -1613,13 +1613,15 @@ value: number of history entries to show
 * `+hotlist+`: manage hotlist
 
 ----
-/hotlist  clear [<level>]
+/hotlist  add [low|message|private|highlight]
+          clear [<level>]
           remove
           restore [-all]
 
-clear: clear hotlist
-level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
-remove: remove current buffer from hotlist
+    add: add current buffer in hotlist (default level: "low", conditions defined in option weechat.look.hotlist_add_conditions are NOT checked)
+  clear: clear hotlist
+  level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
+ remove: remove current buffer from hotlist
 restore: restore latest hotlist removed in the current buffer (or all buffers with -all)
 ----
 
index 8739d2e560c8f6304039b298a762af2cda3fcb22..4c2061602940d415918733749d1dcb6000aeed0e 100644 (file)
@@ -1613,11 +1613,13 @@ valeur : nombre d'entrées dans l'historique à afficher
 * `+hotlist+`: gestion de la hotlist
 
 ----
-/hotlist  clear [<niveau>]
+/hotlist  add [low|message|private|highlight]
+          clear [<niveau>]
           remove
           restore [-all]
 
-  clear : effacer la hotlist
+   add : ajouter le tampon courant dans la hotlist (niveau par défaut : "low", les conditions définies dans l'option weechat.look.hotlist_add_conditions ne sont PAS vérifiées)
+ clear : effacer la hotlist
  niveau : "lowest" pour effacer seulement le plus petit niveau dans la hotlist, "highest" pour effacer seulement le niveau le plus haut dans la hotlist, ou un masque de niveaux : entier qui est une combinaison de 1=join/part, 2=message, 4=privé, 8=highlight
  remove : supprimer le tampon courant de la hotlist
 restore : restaurer la dernière hotlist supprimée dans le tampon courant (ou tous les tampons avec -all)
index 2f3d3b00e87f2d95d21cd9c8e6ba1ffc6ddc71f9..d9f2b229957790869ac48851efb85ddc87017dc4 100644 (file)
@@ -1613,13 +1613,15 @@ valore: numero delle voci nella cronologia da mostrare
 * `+hotlist+`: manage hotlist
 
 ----
-/hotlist  clear [<level>]
+/hotlist  add [low|message|private|highlight]
+          clear [<level>]
           remove
           restore [-all]
 
-clear: clear hotlist
-level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
-remove: remove current buffer from hotlist
+    add: add current buffer in hotlist (default level: "low", conditions defined in option weechat.look.hotlist_add_conditions are NOT checked)
+  clear: clear hotlist
+  level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
+ remove: remove current buffer from hotlist
 restore: restore latest hotlist removed in the current buffer (or all buffers with -all)
 ----
 
index 7fd73285efd0216229b0dd059265240657490da2..25c866325679ce579bce87afc0c91b4ebd871e2a 100644 (file)
@@ -1613,13 +1613,15 @@ value: 表示する履歴エントリの数
 * `+hotlist+`: manage hotlist
 
 ----
-/hotlist  clear [<level>]
+/hotlist  add [low|message|private|highlight]
+          clear [<level>]
           remove
           restore [-all]
 
-clear: clear hotlist
-level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
-remove: remove current buffer from hotlist
+    add: add current buffer in hotlist (default level: "low", conditions defined in option weechat.look.hotlist_add_conditions are NOT checked)
+  clear: clear hotlist
+  level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
+ remove: remove current buffer from hotlist
 restore: restore latest hotlist removed in the current buffer (or all buffers with -all)
 ----
 
index 6a5f7eff02180f1ada0dd84102e4c4b17fab717b..88cc045de7be1e3cc202d5203df6542641ccada9 100644 (file)
@@ -1612,13 +1612,15 @@ Wartość: ilość elementów historii do pokazania
 * `+hotlist+`: manage hotlist
 
 ----
-/hotlist  clear [<level>]
+/hotlist  add [low|message|private|highlight]
+          clear [<level>]
           remove
           restore [-all]
 
-clear: clear hotlist
-level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
-remove: remove current buffer from hotlist
+    add: add current buffer in hotlist (default level: "low", conditions defined in option weechat.look.hotlist_add_conditions are NOT checked)
+  clear: clear hotlist
+  level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
+ remove: remove current buffer from hotlist
 restore: restore latest hotlist removed in the current buffer (or all buffers with -all)
 ----
 
index cd211f3b1168baf4fbfc5ec97502bc66b0ab8d98..108687d98a89e817c6a58f36316b3acd1ed59267 100644 (file)
@@ -1613,13 +1613,15 @@ addreplace: додаје или замењује постојећи филтер
 * `+hotlist+`: manage hotlist
 
 ----
-/hotlist  clear [<level>]
+/hotlist  add [low|message|private|highlight]
+          clear [<level>]
           remove
           restore [-all]
 
-clear: clear hotlist
-level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
-remove: remove current buffer from hotlist
+    add: add current buffer in hotlist (default level: "low", conditions defined in option weechat.look.hotlist_add_conditions are NOT checked)
+  clear: clear hotlist
+  level: "lowest" to clear only lowest level in hotlist, highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
+ remove: remove current buffer from hotlist
 restore: restore latest hotlist removed in the current buffer (or all buffers with -all)
 ----
 
index effd8e05b37c3f32090eb43a70e6846af9dfe18d..0a8199fc2aea82c6532a4fa750f956be8e227208 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1827,15 +1827,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "spravovat proxy"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 5f4f666f4b010789d6caf96d163edf5caa5d8c26..e7d7f5e07f6c61a0d9e119d9ea3842516f778835 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -26,7 +26,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-12-14 22:37+0100\n"
 "Last-Translator: Nils Görs <weechatter@arcor.de>\n"
 "Language-Team: German - Germany <weechatter@arcor.de>\n"
@@ -2328,15 +2328,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "Proxys verwalten"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 6a8fb9c587ba846475e4b48611f2e539f89f2cf2..38647b7d8e677811d3dc35b7b93ee221d5113ce0 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2231,15 +2231,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "gestionar los proxies"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index fbfe72ab3dbde2b9e9782baef833f2b58dd0c6ec..825d3339e6e186f51921bed9ff600271cd052ac2 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
-"PO-Revision-Date: 2022-12-25 18:46+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
+"PO-Revision-Date: 2022-12-25 19:37+0100\n"
 "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
 "Language: fr\n"
@@ -2172,19 +2172,28 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "gestion de la hotlist"
 
-msgid "clear [<level>] || remove || restore [-all]"
-msgstr "clear [<niveau>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
+msgstr ""
+"add [low|message|private|highlight] || clear [<niveau>] || remove || restore "
+"[-all]"
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
-"  clear : effacer la hotlist\n"
+"   add : ajouter le tampon courant dans la hotlist (niveau par défaut : "
+"\"low\", les conditions définies dans l'option weechat.look."
+"hotlist_add_conditions ne sont PAS vérifiées)\n"
+" clear : effacer la hotlist\n"
 " niveau : \"lowest\" pour effacer seulement le plus petit niveau dans la "
 "hotlist, \"highest\" pour effacer seulement le niveau le plus haut dans la "
 "hotlist, ou un masque de niveaux : entier qui est une combinaison de 1=join/"
index 0e3113cb956b0044f13029fb8f252f767e51fb2d..341ddbe41f83df82b9e79b7841e16ecefd3fb296 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1702,15 +1702,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "pufferek kezelése"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 216ac1d556c7720bfbd53749d9066c4db0d838a0..de7d84c8cb3d3cdc794a28c6d2baadbe8a6b0815 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1890,15 +1890,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "gestione dei proxy"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 1a55ecdb8f9d8a026326bd8499987967726ff2a1..6b7dd14f170a9b3080370dcec80e03e078eb8001 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
 "Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -2087,15 +2087,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "プロキシの管理"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 35191a5011d591795c6c361c6e4561595a5e249d..0a1329049d2cb3bb6269da068888481f2eb72950 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -22,7 +22,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
 "Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -2398,15 +2398,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "zarządzanie proxy"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 804a38dd72f613ae01bd0889371407ed35372c0c..268ffcc99b1dd570fb6482c69613f186bd1bb62f 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
 "Language-Team: Portuguese <>\n"
@@ -2079,15 +2079,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "gerir os proxies"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 4b9a086920f1054ca33a45e1d8b7e7ea856d1604..38e05407e7313c2ae39ffb7ca2223e4e2fdcfc4b 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1955,15 +1955,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "gerenciar proxies"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 5d2c161bb63f189526246266d6fcef784bd7dff4..5f79f66af39c701e688bf975b92644767c47fc95 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1723,15 +1723,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "управление буферами"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index e7e673f3ad14f5a34828e90d48ec61c137e8613a..5a1efe3f639c88144ba33419270fab82be76ad91 100644 (file)
--- a/po/sr.po
+++ b/po/sr.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-12-05 09:44+0400\n"
 "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2255,15 +2255,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "управљање проксијима"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index bd0eb293bd307bb493b82f3df1f6f2862553e470..92a1c9953df308eb421153b73273618f312b2c83 100644 (file)
--- 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: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\n"
 "PO-Revision-Date: 2022-10-15 22:51+0200\n"
 "Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2377,15 +2377,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr "vekilleri yönet"
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 9c8fb43f85c199a0f8db407f2fadcb22dc719871..3ddbe908c428c01341a4b591b1a56772d68c3174 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2022-12-25 18:41+0100\n"
+"POT-Creation-Date: 2022-12-25 19:37+0100\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"
@@ -1563,15 +1563,19 @@ msgstr ""
 msgid "manage hotlist"
 msgstr ""
 
-msgid "clear [<level>] || remove || restore [-all]"
+msgid ""
+"add [low|message|private|highlight] || clear [<level>] || remove || restore "
+"[-all]"
 msgstr ""
 
 msgid ""
-"clear: clear hotlist\n"
-"level: \"lowest\" to clear only lowest level in hotlist, highest\" to clear "
-"only highest level in hotlist, or level mask: integer which is a combination "
-"of 1=join/part, 2=message, 4=private, 8=highlight)\n"
-"remove: remove current buffer from hotlist\n"
+"    add: add current buffer in hotlist (default level: \"low\", conditions "
+"defined in option weechat.look.hotlist_add_conditions are NOT checked)\n"
+"  clear: clear hotlist\n"
+"  level: \"lowest\" to clear only lowest level in hotlist, highest\" to "
+"clear only highest level in hotlist, or level mask: integer which is a "
+"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
+" remove: remove current buffer from hotlist\n"
 "restore: restore latest hotlist removed in the current buffer (or all "
 "buffers with -all)"
 msgstr ""
index 90d399ee67d6fa2b64ed778232dab168ddade438..e88e515872403d2433ee87d37a40659fb5fe2663 100644 (file)
@@ -3275,6 +3275,8 @@ COMMAND_CALLBACK(history)
 
 COMMAND_CALLBACK(hotlist)
 {
+    int priority;
+
     /* make C compiler happy */
     (void) pointer;
     (void) data;
@@ -3282,6 +3284,19 @@ COMMAND_CALLBACK(hotlist)
 
     COMMAND_MIN_ARGS(2, "");
 
+    if (string_strcasecmp (argv[1], "add") == 0)
+    {
+        priority = GUI_HOTLIST_LOW;
+        if (argc > 2)
+        {
+            priority = gui_hotlist_search_priority (argv[2]);
+            if (priority < 0)
+                COMMAND_ERROR;
+        }
+        gui_hotlist_add (buffer, priority, NULL, 0);
+        return WEECHAT_RC_OK;
+    }
+
     if (string_strcasecmp (argv[1], "clear") == 0)
     {
         gui_hotlist_clear_level_string (buffer, (argc > 2) ? argv[2] : NULL);
@@ -8067,17 +8082,25 @@ command_init ()
     hook_command (
         NULL, "hotlist",
         N_("manage hotlist"),
-        N_("clear [<level>] || remove || restore [-all]"),
-        N_("clear: clear hotlist\n"
-           "level: \"lowest\" to clear only lowest level in hotlist, "
+        N_("add [low|message|private|highlight]"
+           " || clear [<level>]"
+           " || remove"
+           " || restore [-all]"),
+        N_("    add: add current buffer in hotlist (default level: \"low\", "
+            "conditions defined in option weechat.look.hotlist_add_conditions "
+            "are NOT checked)\n"
+           "  clear: clear hotlist\n"
+           "  level: \"lowest\" to clear only lowest level in hotlist, "
            "highest\" to clear only highest level in hotlist, or level mask: "
            "integer which is a combination of 1=join/part, 2=message, "
            "4=private, 8=highlight)\n"
-           "remove: remove current buffer from hotlist\n"
+           " remove: remove current buffer from hotlist\n"
            "restore: restore latest hotlist removed in the current buffer "
            "(or all buffers with -all)"),
+        "add low|message|private|highlight || "
         "clear 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|lowest|highest || "
-        "remove || restore -all",
+        "remove || "
+        "restore -all",
         &command_hotlist, NULL, NULL);
     /*
      * give high priority (50000) so that an alias will not take precedence
index 2369feccf2f52f5f91691a087b99f0e78a30210a..187e39340d0e6193ecc2ed7b18f1d5351c361ef2 100644 (file)
@@ -769,7 +769,8 @@ upgrade_weechat_read_hotlist (struct t_infolist *infolist)
                 memcpy (&creation_time, buf, size);
                 new_hotlist = gui_hotlist_add (ptr_buffer,
                                                infolist_integer (infolist, "priority"),
-                                               &creation_time);
+                                               &creation_time,
+                                               1);
                 if (new_hotlist)
                 {
                     for (i = 0; i < GUI_HOTLIST_NUM_PRIORITIES; i++)
index a93f874df3eaa565a5018bf1ff584afde91de5b8..aea60fa0ee3e427c8743b5083bc2c996e179c3f1 100644 (file)
@@ -2159,7 +2159,7 @@ gui_buffer_set (struct t_gui_buffer *buffer, const char *property,
                 if (number < 0)
                     gui_hotlist_remove_buffer (buffer, 0);
                 else
-                    (void) gui_hotlist_add (buffer, number, NULL);
+                    (void) gui_hotlist_add (buffer, number, NULL, 1);
             }
         }
     }
index 9debccc9ed86ad9dd857d1096704156d8bce6448..409fc93d909dcf1b2a33140d1c998a8015e85de8 100644 (file)
@@ -35,6 +35,7 @@
 #include "../core/wee-hook.h"
 #include "../core/wee-infolist.h"
 #include "../core/wee-log.h"
+#include "../core/wee-string.h"
 #include "../core/wee-util.h"
 #include "../plugins/plugin.h"
 #include "gui-hotlist.h"
@@ -53,6 +54,9 @@ struct t_hashtable *gui_hotlist_hashtable_add_conditions_options = NULL;
 int gui_add_hotlist = 1;                    /* 0 is for temporarily disable */
                                             /* hotlist add for all buffers  */
 
+char *gui_hotlist_priority_string[GUI_HOTLIST_NUM_PRIORITIES] =
+{ "low", "message", "private", "highlight" };
+
 
 /*
  * Sends signal "hotlist_changed".
@@ -65,6 +69,29 @@ gui_hotlist_changed_signal (struct t_gui_buffer *buffer)
                              WEECHAT_HOOK_SIGNAL_POINTER, buffer);
 }
 
+/*
+ * Searches for hotlist priority.
+ *
+ * Returns index of hotlist priority found, -1 if not found.
+ */
+
+int
+gui_hotlist_search_priority (const char *priority)
+{
+    int i;
+
+    if (!priority)
+        return -1;
+
+    for (i = 0; i < GUI_HOTLIST_NUM_PRIORITIES; i++)
+    {
+        if (string_strcasecmp (gui_hotlist_priority_string[i], priority) == 0)
+            return i;
+    }
+
+    return -1;
+}
+
 /*
  * Searches for hotlist with buffer pointer.
  *
@@ -331,7 +358,8 @@ gui_hotlist_add_hotlist (struct t_gui_hotlist **hotlist,
 struct t_gui_hotlist *
 gui_hotlist_add (struct t_gui_buffer *buffer,
                  enum t_gui_hotlist_priority priority,
-                 struct timeval *creation_time)
+                 struct timeval *creation_time,
+                 int check_conditions)
 {
     struct t_gui_hotlist *new_hotlist, *ptr_hotlist;
     int i, count[GUI_HOTLIST_NUM_PRIORITIES], rc;
@@ -351,60 +379,64 @@ gui_hotlist_add (struct t_gui_buffer *buffer,
     if (!gui_hotlist_check_buffer_notify (buffer, priority))
         return NULL;
 
-    /* create hashtable if needed (to evaluate conditions) */
-    if (!gui_hotlist_hashtable_add_conditions_pointers)
+    if (check_conditions)
     {
-        gui_hotlist_hashtable_add_conditions_pointers = hashtable_new (
-            32,
-            WEECHAT_HASHTABLE_STRING,
-            WEECHAT_HASHTABLE_POINTER,
-            NULL, NULL);
+        /* create hashtable if needed (to evaluate conditions) */
         if (!gui_hotlist_hashtable_add_conditions_pointers)
-            return NULL;
-    }
-    if (!gui_hotlist_hashtable_add_conditions_vars)
-    {
-        gui_hotlist_hashtable_add_conditions_vars = hashtable_new (
-            32,
-            WEECHAT_HASHTABLE_STRING,
-            WEECHAT_HASHTABLE_STRING,
-            NULL, NULL);
+        {
+            gui_hotlist_hashtable_add_conditions_pointers = hashtable_new (
+                32,
+                WEECHAT_HASHTABLE_STRING,
+                WEECHAT_HASHTABLE_POINTER,
+                NULL, NULL);
+            if (!gui_hotlist_hashtable_add_conditions_pointers)
+                return NULL;
+        }
         if (!gui_hotlist_hashtable_add_conditions_vars)
-            return NULL;
-    }
-    if (!gui_hotlist_hashtable_add_conditions_options)
-    {
-        gui_hotlist_hashtable_add_conditions_options = hashtable_new (
-            32,
-            WEECHAT_HASHTABLE_STRING,
-            WEECHAT_HASHTABLE_STRING,
-            NULL, NULL);
+        {
+            gui_hotlist_hashtable_add_conditions_vars = hashtable_new (
+                32,
+                WEECHAT_HASHTABLE_STRING,
+                WEECHAT_HASHTABLE_STRING,
+                NULL, NULL);
+            if (!gui_hotlist_hashtable_add_conditions_vars)
+                return NULL;
+        }
         if (!gui_hotlist_hashtable_add_conditions_options)
+        {
+            gui_hotlist_hashtable_add_conditions_options = hashtable_new (
+                32,
+                WEECHAT_HASHTABLE_STRING,
+                WEECHAT_HASHTABLE_STRING,
+                NULL, NULL);
+            if (!gui_hotlist_hashtable_add_conditions_options)
+                return NULL;
+            hashtable_set (gui_hotlist_hashtable_add_conditions_options,
+                           "type", "condition");
+        }
+
+        /* set data in hashtables */
+        hashtable_set (gui_hotlist_hashtable_add_conditions_pointers,
+                       "window", gui_current_window);
+        hashtable_set (gui_hotlist_hashtable_add_conditions_pointers,
+                       "buffer", buffer);
+        snprintf (str_value, sizeof (str_value), "%d", priority);
+        hashtable_set (gui_hotlist_hashtable_add_conditions_vars,
+                       "priority", str_value);
+
+        /* check if conditions are true */
+        value = eval_expression (
+            CONFIG_STRING(config_look_hotlist_add_conditions),
+            gui_hotlist_hashtable_add_conditions_pointers,
+            gui_hotlist_hashtable_add_conditions_vars,
+            gui_hotlist_hashtable_add_conditions_options);
+        rc = (value && (strcmp (value, "1") == 0));
+        if (value)
+            free (value);
+        if (!rc)
             return NULL;
-        hashtable_set (gui_hotlist_hashtable_add_conditions_options,
-                       "type", "condition");
     }
 
-    /* set data in hashtables */
-    hashtable_set (gui_hotlist_hashtable_add_conditions_pointers,
-                   "window", gui_current_window);
-    hashtable_set (gui_hotlist_hashtable_add_conditions_pointers,
-                   "buffer", buffer);
-    snprintf (str_value, sizeof (str_value), "%d", priority);
-    hashtable_set (gui_hotlist_hashtable_add_conditions_vars,
-                   "priority", str_value);
-
-    /* check if conditions are true */
-    value = eval_expression (CONFIG_STRING(config_look_hotlist_add_conditions),
-                             gui_hotlist_hashtable_add_conditions_pointers,
-                             gui_hotlist_hashtable_add_conditions_vars,
-                             gui_hotlist_hashtable_add_conditions_options);
-    rc = (value && (strcmp (value, "1") == 0));
-    if (value)
-        free (value);
-    if (!rc)
-        return NULL;
-
     /* init count */
     for (i = 0; i < GUI_HOTLIST_NUM_PRIORITIES; i++)
     {
index f7876f500fb9b0c8649d350fbb937981c6c8969c..d0054d4bdc8b9501718bdee988e0e3c897bdf1ad 100644 (file)
@@ -58,9 +58,11 @@ extern int gui_add_hotlist;
 
 /* hotlist functions */
 
+extern int gui_hotlist_search_priority (const char *priority);
 extern struct t_gui_hotlist *gui_hotlist_add (struct t_gui_buffer *buffer,
                                               enum t_gui_hotlist_priority priority,
-                                              struct timeval *creation_time);
+                                              struct timeval *creation_time,
+                                              int check_conditions);
 extern void gui_hotlist_restore_buffer (struct t_gui_buffer *buffer);
 extern void gui_hotlist_restore_all_buffers ();
 extern void gui_hotlist_resort ();
index cb69f1787ec3d6d83369b01c7b7b33c08bf9bca8..da8a3196a4309cbb9bbc5e85d8a326e2e6e7b9cb 100644 (file)
@@ -1791,7 +1791,7 @@ gui_line_add (struct t_gui_line *line)
             && line->data->highlight)
         {
             (void) gui_hotlist_add (line->data->buffer,
-                                    GUI_HOTLIST_HIGHLIGHT, NULL);
+                                    GUI_HOTLIST_HIGHLIGHT, NULL, 1);
             if (!weechat_upgrading)
             {
                 message_for_signal = gui_line_build_string_prefix_message (
@@ -1823,7 +1823,7 @@ gui_line_add (struct t_gui_line *line)
             if (line->data->notify_level >= GUI_HOTLIST_MIN)
             {
                 (void) gui_hotlist_add (line->data->buffer,
-                                        line->data->notify_level, NULL);
+                                        line->data->notify_level, NULL, 1);
             }
         }
     }