]> jfr.im git - irc/weechat/weechat.git/commitdiff
irc: add option irc.look.open_pv_buffer_echo_msg (issue #2016)
authorSébastien Helleu <redacted>
Thu, 14 Sep 2023 18:19:05 +0000 (20:19 +0200)
committerSébastien Helleu <redacted>
Thu, 14 Sep 2023 18:19:05 +0000 (20:19 +0200)
19 files changed:
ChangeLog.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/plugins/irc/irc-config.c
src/plugins/irc/irc-config.h
src/plugins/irc/irc-protocol.c
tests/unit/plugins/irc/test-irc-protocol.cpp

index b2676ac7c867b00d20db82c37f172eeefbd1a3bf..3153459cb69124089acd0bae0f86e8f5ca7efba0 100644 (file)
@@ -59,7 +59,7 @@ Bug fixes::
   * fset: remove extra spaces between min and max values when second format is used
   * fset: fix mouse actions when second format is used
   * fset: apply option fset.color.help_description (issue #1988)
-  * irc: don't open a new private buffer on `/msg` command when capability echo-message is enabled (issue #2016)
+  * irc: add option irc.look.open_pv_buffer_echo_msg to open private buffer on self message when capability echo-message is enabled (issue #2016)
   * irc: fix title of private buffers wrongly set to own address when capability echo-message is enabled (issue #2016)
   * irc: fix unexpected message sent to server when part of the second line of an IRC command (issue #1992)
   * irc: fix autojoin of channels when private buffers are opened (issue #2012)
index 4cfe2af5c41cd1754d76c91f01d584407e10d06c..2ce1fbf79c85b8ae97247159eef40032ae78cf60 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9589,6 +9589,10 @@ msgstr ""
 "když se změní status nepřítomnosti přezdívky (výsledek příkazu whois), "
 "například: \"notify_highlight\", \"notify_message\" or \"notify_private\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "zavřít buffer, když je na kanálu spuštěn /part"
 
index 04a9ec77a0524af907765aa48611911373feb483..18a0ed0bc9686e97b7d20b9fce72d5bc8850f9cd 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-14 08:44+0200\n"
 "Last-Translator: Nils Görs <weechatter@arcor.de>\n"
 "Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -877,21 +877,18 @@ msgid ""
 "%sFailed to decrypt data: hash algorithm \"%s\" is not available (ligbcrypt "
 "version is too old?)"
 msgstr ""
-"%sFehler beim Entschlüsseln der Daten: Hash-Algorithmus „%s“ ist nicht"
-" verfügbar (ligbcrypt"
-"Version ist zu alt?)"
+"%sFehler beim Entschlüsseln der Daten: Hash-Algorithmus „%s“ ist nicht "
+"verfügbar (ligbcryptVersion ist zu alt?)"
 
 #, c-format
 msgid ""
 "%sFailed to decrypt data: cipher \"%s\" is not available (ligbcrypt version "
 "is too old?)"
 msgstr ""
-"%sDaten konnten nicht entschlüsselt werden: Cipher „%s“ ist nicht verfügbar"
-" (ligbcrypt-Version"
-"ist zu alt?)"
+"%sDaten konnten nicht entschlüsselt werden: Cipher „%s“ ist nicht verfügbar "
+"(ligbcrypt-Versionist zu alt?)"
 
 #, c-format
-#| msgid "%sFailed to decrypt data (wrong passphrase?)"
 msgid "%sFailed to decrypt data: wrong passphrase?"
 msgstr "%sFehler beim Entschlüsseln der Daten: falsche Passphrase?"
 
@@ -6078,7 +6075,6 @@ msgstr ""
 "umschalten"
 
 #. TRANSLATORS: "hash algorithm not supported"
-#| msgid "log not started"
 msgid "not supported"
 msgstr "nicht unterstützt"
 
@@ -6135,8 +6131,8 @@ msgstr ""
 msgid ""
 "%sOption %s.%s.%s can not be changed because there are still encrypted data"
 msgstr ""
-"%sOption %s.%s.%s kann nicht geändert werden, da noch verschlüsselte Daten"
-" vorhanden sind"
+"%sOption %s.%s.%s kann nicht geändert werden, da noch verschlüsselte Daten "
+"vorhanden sind"
 
 #, c-format
 msgid "%sPassphrase is not set, unable to decrypt data \"%s\""
@@ -6149,18 +6145,16 @@ msgid ""
 "%sFailed to decrypt data \"%s\": hash algorithm \"%s\" is not available "
 "(ligbcrypt version is too old?)"
 msgstr ""
-"%sFehler beim Entschlüsseln der Daten „%s“: Hash-Algorithmus „%s“ ist nicht"
-" verfügbar"
-"(ligbcrypt-Version ist zu alt?)"
+"%sFehler beim Entschlüsseln der Daten „%s“: Hash-Algorithmus „%s“ ist nicht "
+"verfügbar(ligbcrypt-Version ist zu alt?)"
 
 #, c-format
 msgid ""
 "%sFailed to decrypt data \"%s\": cipher \"%s\" is not available (ligbcrypt "
 "version is too old?)"
 msgstr ""
-"%sFehler beim Entschlüsseln der Daten „%s“: Cipher „%s“ ist nicht verfügbar"
-" (ligbcrypt"
-"Version ist zu alt?)"
+"%sFehler beim Entschlüsseln der Daten „%s“: Cipher „%s“ ist nicht verfügbar "
+"(ligbcryptVersion ist zu alt?)"
 
 #, c-format
 msgid "%sWrong passphrase, unable to decrypt data \"%s\""
@@ -6176,20 +6170,18 @@ msgid ""
 "%sFailed to encrypt data \"%s\": hash algorithm \"%s\" is not available "
 "(ligbcrypt version is too old?)"
 msgstr ""
-"%sFehler beim Verschlüsseln der Daten „%s“: Hash-Algorithmus „%s“ ist nicht"
-" verfügbar"
-"(ligbcrypt-Version ist zu alt?)"
+"%sFehler beim Verschlüsseln der Daten „%s“: Hash-Algorithmus „%s“ ist nicht "
+"verfügbar(ligbcrypt-Version ist zu alt?)"
 
 #, c-format
 msgid ""
 "%sFailed to encrypt data \"%s\": cipher \"%s\" is not available (ligbcrypt "
 "version is too old?)"
 msgstr ""
-"%sFehler beim Verschlüsseln der Daten „%s“: Cipher „%s“ ist nicht verfügbar"
-" (ligbcrypt-Version ist zu alt?)"
+"%sFehler beim Verschlüsseln der Daten „%s“: Cipher „%s“ ist nicht verfügbar "
+"(ligbcrypt-Version ist zu alt?)"
 
 #, c-format
-#| msgid "%sError encrypting data \"%s\" (%d)"
 msgid "%sFailed to encrypt data \"%s\" (%d)"
 msgstr "%sFehler beim Verschlüsseln der Daten „%s“ (%d)"
 
@@ -6205,10 +6197,9 @@ msgid ""
 "specific libgcrypt version: sha3-*: libgcrypt >= 1.7.0, blake2*: libgcrypt "
 ">= 1.8.0, sha512-*: libgcrypt >= 1.9.4"
 msgstr ""
-"Hash-Algorithmus zur Überprüfung der entschlüsselten Daten; einige von ihnen"
-" erfordern eine bestimmte libgcrypt-Version: sha3-*: libgcrypt >= 1.7.0,"
-" blake2*: libgcrypt "
-">= 1.8.0, sha512-*: libgcrypt >= 1.9.4"
+"Hash-Algorithmus zur Überprüfung der entschlüsselten Daten; einige von ihnen "
+"erfordern eine bestimmte libgcrypt-Version: sha3-*: libgcrypt >= 1.7.0, "
+"blake2*: libgcrypt >= 1.8.0, sha512-*: libgcrypt >= 1.9.4"
 
 msgid ""
 "read the passphrase from the output of this system command (only the first "
@@ -11950,6 +11941,10 @@ msgstr ""
 "(Rückgabe durch Befehl whois), zum Beispiel: \"notify_message\", "
 "\"notify_private\" oder \"notify_highlight\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "schließt den Buffer wenn \"/part\" im Kanal ausgeführt wird"
 
@@ -16625,8 +16620,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat"
 msgid ""
 "list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
 "<name> <hook> "
-"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<"
-"return_code>\" [\"<post_action>\"]]]]]] "
+"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
 "|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
 "<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|-"
 "all [<name>...]] || restart <name>|-all [<name>...] || show <name> || del "
@@ -16635,8 +16629,7 @@ msgid ""
 msgstr ""
 "list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
 "<name> <hook> "
-"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<"
-"return_code>\" [\"<post_action>\"]]]]]] "
+"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
 "|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
 "<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|-"
 "all [<name>...]] || restart <name>|-all [<name>...] || show <name> || del "
index 5085fd2c9e20395d1962c58b8e6e0af9bdc46512..cc1115cfbcd87ea34857fe8dca84c88456f57eb4 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -10296,6 +10296,10 @@ msgstr ""
 "cuando un apodo cambia su estado de ausencia (resultado del comando whois), "
 "por ejemplo: \"notify_highlight\", \"notify_message\" o \"notify_private\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "cerrar el buffer cuando /part es usado en un canal"
 
index dd1e9b74bdd576af14d5a9469ea5b7cb408de0de..aa9df68e324ec7e895549d19add71c97c469cd65 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: 2023-09-13 15:07+0200\n"
-"PO-Revision-Date: 2023-09-13 15:07+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
+"PO-Revision-Date: 2023-09-14 20:10+0200\n"
 "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
 "Language: fr\n"
@@ -11736,6 +11736,12 @@ msgstr ""
 "de la commande whois), par exemple : \"notify_message\", \"notify_private\" "
 "ou \"notify_highlight\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+"ouvrir un tampon privé sur son propre message quand la capacité echo-message "
+"est activée"
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "fermer le tampon lorsque /part est exécuté sur un canal"
 
index 0bacc5bb0c6f9d76c4f60987c7edd445694993ae..fb254165159995df189a492b95b90d11b5e36590 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9026,6 +9026,10 @@ msgid ""
 "\"notify_message\", \"notify_private\" or \"notify_highlight\""
 msgstr ""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr ""
 
index f920c44045636080a01ddd3a4c5e4e96fdb19c95..ed0bfa09cbe9b7b0fc8531de280b264415b451ed 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -10019,6 +10019,10 @@ msgstr ""
 "whois), ad esempio: \"notify_message\", \"notify_private\" o "
 "\"notify_highlight\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "chiude buffer quando viene digitato /part nel canale"
 
index c3a2ad0e43b0c7a8e955896df85b151acec32a8a..409f80b8d6a686a43d2c34385a0a1bedd2fc44e8 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
 "Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -11271,6 +11271,10 @@ msgstr ""
 "よって表示されたメッセージに使われたタグのコンマ区切りリスト、例: "
 "\"notify_message\"、\"notify_private\"、\"notify_highlight\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "/part を実行した場合にバッファを閉じる"
 
index 25f0d1c9ee4f8eaebdd1f4d6f99977fa38fff9de..43d91f37ad1f7e527a15af8b70c4499a6ec752e7 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
 "Language-Team: Polish <kde-i18n-doc@kde.org>\n"
@@ -12482,6 +12482,10 @@ msgstr ""
 "komendy whois), na przykład: \"notify_message\", \"notify_private\" or "
 "\"notify_highlight\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "zamyka bufor, kiedy na kanale wykonamy /part"
 
index a086f91981fdb103b05719cbcd4e80b9b40d7a42..498c412e4ceb02ce19fa5363ba12be453a56706a 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
 "Language-Team: Portuguese <>\n"
@@ -10968,6 +10968,10 @@ msgstr ""
 "whois), por exemplo: \"notify_message\", \"notify_private\" ou "
 "\"notify_highlight\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "fechar o buffer ao executar /part num canal"
 
index cb4a7ee40542f481a65704b870765f3cea546890..5ad4335e984709a9bdf874a18829fc95382dda9d 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9608,6 +9608,10 @@ msgid ""
 "\"notify_message\", \"notify_private\" or \"notify_highlight\""
 msgstr ""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "fechar buffer quando o comando /part é executado em um canal"
 
index 9c6131e04fef7ff0fc6e5fa4de7a8257395477e5..06ea9e7d0b9869c9ff262fc51f14e21a6a4a8d63 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -9060,6 +9060,10 @@ msgid ""
 "\"notify_message\", \"notify_private\" or \"notify_highlight\""
 msgstr ""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr ""
 
index 5b105adfd891b727b8445f5c7d079f348fa92091..ae4979c31cd049220369f7b6485234ca4db3457e 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11523,6 +11523,10 @@ msgstr ""
 "се статус одсуства надимка промени (резултат команде whois), на пример: "
 "„notify_message”, „notify_private” или „notify_highlight”"
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "затварање бафера када се на каналу изврши /part"
 
index e5de8e660e0450a2a489542d63b425ff96a98b95..2c312d2cc9f33adee48db50042fd487b3736c818 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: 2023-09-13 15:09+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+0200\n"
 "PO-Revision-Date: 2023-09-06 19:13+0200\n"
 "Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
 "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11977,6 +11977,10 @@ msgstr ""
 "kullanılan etiketlerin virgülle ayrılmış listesi (komut whois'inin sonucu); "
 "örneğin: \"notify_message\", \"notify_private\" veya \"notify_highlight\""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr "bir kanalda /part verildiğinde arabelleği kapat"
 
index 4cdcb0951b19c6a06ed9ea79c2264cbe35e0a909..a5c51dde01dd07d0bdeaf9910baadf8ba86b4041 100644 (file)
@@ -21,7 +21,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WeeChat\n"
 "Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2023-09-13 15:07+0200\n"
+"POT-Creation-Date: 2023-09-14 19:39+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"
@@ -8128,6 +8128,10 @@ msgid ""
 "\"notify_message\", \"notify_private\" or \"notify_highlight\""
 msgstr ""
 
+msgid ""
+"open a private buffer on self message when capability echo-message is enabled"
+msgstr ""
+
 msgid "close buffer when /part is issued on a channel"
 msgstr ""
 
index a3b25ac915b3211ef7a801bde4c01fb5bc1cef83..eb89e4fdb2f3c2750f6848a31be40c3bd3974746 100644 (file)
@@ -108,6 +108,7 @@ struct t_config_option *irc_config_look_notice_welcome_redirect = NULL;
 struct t_config_option *irc_config_look_notice_welcome_tags = NULL;
 struct t_config_option *irc_config_look_notify_tags_ison = NULL;
 struct t_config_option *irc_config_look_notify_tags_whois = NULL;
+struct t_config_option *irc_config_look_open_pv_buffer_echo_msg = NULL;
 struct t_config_option *irc_config_look_part_closes_buffer = NULL;
 struct t_config_option *irc_config_look_pv_buffer = NULL;
 struct t_config_option *irc_config_look_pv_tags = NULL;
@@ -3401,6 +3402,13 @@ irc_config_init ()
                "\"notify_highlight\""),
             NULL, 0, 0, "notify_message", NULL, 0,
             NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+        irc_config_look_open_pv_buffer_echo_msg = weechat_config_new_option (
+            irc_config_file, irc_config_section_look,
+            "open_pv_buffer_echo_msg", "boolean",
+            N_("open a private buffer on self message when capability "
+               "echo-message is enabled"),
+            NULL, 0, 0, "on", NULL, 0,
+            NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
         irc_config_look_part_closes_buffer = weechat_config_new_option (
             irc_config_file, irc_config_section_look,
             "part_closes_buffer", "boolean",
index c5d078bdc0fa5a693323333518fae86c845b198e..41291e887563fe16b5721499847d98052ae341d7 100644 (file)
@@ -143,6 +143,7 @@ extern struct t_config_option *irc_config_look_notice_welcome_redirect;
 extern struct t_config_option *irc_config_look_notice_welcome_tags;
 extern struct t_config_option *irc_config_look_notify_tags_ison;
 extern struct t_config_option *irc_config_look_notify_tags_whois;
+extern struct t_config_option *irc_config_look_open_pv_buffer_echo_msg;
 extern struct t_config_option *irc_config_look_part_closes_buffer;
 extern struct t_config_option *irc_config_look_pv_buffer;
 extern struct t_config_option *irc_config_look_pv_tags;
index 4493bda8424d0076bfdc7b5b6a5d9c7cc1c10e18..370aa0b3f71f5e57056f5fdfa3ae7ed3099198a0 100644 (file)
@@ -3265,7 +3265,8 @@ IRC_PROTOCOL_CALLBACK(privmsg)
             if (strcmp (ptr_channel->name, remote_nick) != 0)
                 irc_channel_pv_rename (server, ptr_channel, remote_nick);
         }
-        else if (!nick_is_me || !cap_echo_message)
+        else if (!nick_is_me || !cap_echo_message
+                 || weechat_config_boolean (irc_config_look_open_pv_buffer_echo_msg))
         {
             ptr_channel = irc_channel_new (server,
                                            IRC_CHANNEL_TYPE_PRIVATE,
index abda9ebea27d229476a95f2b4db39e3720420ab7..0aa4926f64591e3262f10a9f2ce2ad926557c555 100644 (file)
@@ -2799,9 +2799,17 @@ TEST(IrcProtocolWithServer, privmsg)
         {
             /* with echo-message */
             RECV(":alice!user@host PRIVMSG bob :this is the message ");
+            CHECK_PV_CLOSE("bob", "alice", "this is the message ",
+                           "irc_privmsg,self_msg,notify_none,no_highlight,"
+                           "prefix_nick_white,nick_alice,host_user@host,log1");
+            /* with echo-message, option irc.look.open_pv_buffer_echo_msg off */
+            config_file_option_set (irc_config_look_open_pv_buffer_echo_msg,
+                                    "off", 1);
+            RECV(":alice!user@host PRIVMSG bob :this is the message ");
             CHECK_SRV("--", "Msg(alice) -> bob: this is the message ",
                       "irc_privmsg,self_msg,notify_none,no_highlight,"
                       "nick_alice,host_user@host,log1");
+            config_file_option_reset (irc_config_look_open_pv_buffer_echo_msg, 1);
         }
 
         /*
@@ -2820,9 +2828,17 @@ TEST(IrcProtocolWithServer, privmsg)
         {
             /* with echo-message */
             RECV(":alice!user@host PRIVMSG nickserv :identify secret");
+            CHECK_PV_CLOSE("nickserv", "alice", "identify ******",
+                           "irc_privmsg,self_msg,notify_none,no_highlight,"
+                           "prefix_nick_white,nick_alice,host_user@host,log1");
+            /* with echo-message, option irc.look.open_pv_buffer_echo_msg off */
+            config_file_option_set (irc_config_look_open_pv_buffer_echo_msg,
+                                    "off", 1);
+            RECV(":alice!user@host PRIVMSG nickserv :identify secret");
             CHECK_SRV("--", "Msg(alice) -> nickserv: identify ******",
                       "irc_privmsg,self_msg,notify_none,no_highlight,"
                       "nick_alice,host_user@host,log1");
+            config_file_option_reset (irc_config_look_open_pv_buffer_echo_msg, 1);
         }
 
         /* broken CTCP to channel */