1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

irc: add option irc.look.notice_nicks_disable_notify

This commit is contained in:
Sébastien Helleu
2024-09-02 19:55:27 +02:00
parent fce44675c4
commit 3253500d15
19 changed files with 222 additions and 69 deletions
+1
View File
@@ -10,6 +10,7 @@
### Added
- relay: display connection status in input prompt of remote buffers, if not connected or if fetching data from remote
- irc: add option irc.look.notice_nicks_disable_notify
### Fixed
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11115,6 +11115,11 @@ msgstr ""
"zobrazovat upozornění jako soukromé zprávy (pokud je automaticky, použije se "
"soukromý buffer, kdy existuje)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+55 -50
View File
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-09-02 15:45+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -1911,11 +1911,11 @@ msgstr ""
"undOperatoren (+, -, *, /, //, %, **)"
msgid ""
" - ${random:min,max}: a random integer number between \"min\" and "
"\"max\" (inclusive)"
" - ${random:min,max}: a random integer number between \"min\" and \"max\" "
"(inclusive)"
msgstr ""
" - ${random:min,max}: eine zufällige ganze Zahl zwischen \"min\" "
"und\"max\" (einschließlich)"
" - ${random:min,max}: eine zufällige ganze Zahl zwischen \"min\" und\"max\" "
"(einschließlich)"
msgid " - ${translate:string}: the translated string"
msgstr " - ${translate:string}: die übersetzte Zeichenkette"
@@ -2855,8 +2855,8 @@ msgid ""
" raw[chat(xxx)]: chat area for buffer with name \"xxx\" (full name "
"including plugin)"
msgstr ""
" raw[chat(xxx)]: Chatbereich für einen Buffer mit dem Namen "
"\"xxx\" (vollständiger Name, mit Erweiterung)"
" raw[chat(xxx)]: Chatbereich für einen Buffer mit dem Namen \"xxx\" "
"(vollständiger Name, mit Erweiterung)"
msgid " raw[bar(*)]: any bar"
msgstr " raw[bar(*)]: beliebige Bar"
@@ -4904,8 +4904,8 @@ msgstr ""
"\"-yes\" ausgeführt werden (siehe /help quit)"
msgid ""
"if set, /upgrade command must be confirmed with extra argument \"-"
"yes\" (see /help upgrade)"
"if set, /upgrade command must be confirmed with extra argument \"-yes\" "
"(see /help upgrade)"
msgstr ""
"ist diese Einstellung aktiviert, muss der \"/upgrade\" Befehl mit dem "
"Argument \"-yes\" ausgeführt werden (siehe /help upgrade)"
@@ -4961,10 +4961,10 @@ msgid ""
"weechat.color.emphasized* are used"
msgstr ""
"Attribute um Textpassagen hervorzuheben: Das setzen von ein- oder mehreren "
"Attributen ist möglich (\"%\" für blinkenden Text, \".\" zum "
"\"dimmen\" (halbe Helligkeit),\"*\" für fett, \"!\" für invertiert, \"/\" "
"für kursiv, \"_\" für unterstrichen); wenn die Zeichenkette leer ist, werden "
"die Farben genutzt die durch weechat.color.emphasized* definiert sind"
"Attributen ist möglich (\"%\" für blinkenden Text, \".\" zum \"dimmen\" "
"(halbe Helligkeit),\"*\" für fett, \"!\" für invertiert, \"/\" für kursiv, "
"\"_\" für unterstrichen); wenn die Zeichenkette leer ist, werden die Farben "
"genutzt die durch weechat.color.emphasized* definiert sind"
msgid ""
"comma separated list of words to highlight; case insensitive comparison (use "
@@ -7117,24 +7117,24 @@ msgstr ""
"Bedingungen um eine Infobar anzuzeigen. Eine einfache Bedingung: \"active\", "
"\"inactive\", \"nicklist\" (Fenster muss aktiv/inaktiv sein oder der Buffer "
"enthält eine Benutzerliste), oder man nutzt einen Ausdruck mit Bedingungen "
"(siehe /help eval). Beispiele: \"${nicklist} && ${info:term_width} > "
"100\" (lokale Variablen für den Ausdruck sind ${active}, ${inactive} und "
"(siehe /help eval). Beispiele: \"${nicklist} && ${info:term_width} > 100\" "
"(lokale Variablen für den Ausdruck sind ${active}, ${inactive} und "
"${nicklist})"
msgid "bar position (bottom, top, left, right)"
msgstr "Position der Infobar (unten, oben, links, rechts)"
msgid ""
"bar filling direction (\"horizontal\" (from left to right) or "
"\"vertical\" (from top to bottom)) when bar position is top or bottom"
"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" "
"(from top to bottom)) when bar position is top or bottom"
msgstr ""
"Darstellung innerhalb der Infobar, falls die Infobar oben/unten angezeigt "
"wird (\"horizontal\" (von links nach rechts) oder \"vertikal\" (von oben "
"nach unten))"
msgid ""
"bar filling direction (\"horizontal\" (from left to right) or "
"\"vertical\" (from top to bottom)) when bar position is left or right"
"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" "
"(from top to bottom)) when bar position is left or right"
msgstr ""
"Darstellung innerhalb der Infobar, falls die Infobar links/rechts angezeigt "
"wird (\"horizontal\" (von links nach rechts) oder \"vertikal\" (von oben "
@@ -7174,9 +7174,9 @@ msgid "separator line between bar and other bars/windows"
msgstr "Trennzeichen zwischen verschieden Infobars und Fenstern"
msgid ""
"items of bar, they can be separated by comma (space between items) or \"+"
"\" (glued items); special syntax \"@buffer:item\" can be used to force "
"buffer used when displaying the bar item"
"items of bar, they can be separated by comma (space between items) or \"+\" "
"(glued items); special syntax \"@buffer:item\" can be used to force buffer "
"used when displaying the bar item"
msgstr ""
"Items einer Bar können entweder durch Kommata (\",\") voneinander getrennt "
"(setzt ein Leerzeichen zwischen die Items), oder durch ein \"+\" Zeichen "
@@ -8884,8 +8884,8 @@ msgid " - ${description}: option description (translated)"
msgstr " - ${description}: Beschreibung der Option (übersetzt)"
msgid ""
" - ${description2}: option description (translated), \"(no "
"description)\" (translated) if there's no description"
" - ${description2}: option description (translated), \"(no description)\" "
"(translated) if there's no description"
msgstr ""
" - ${description2}: Beschreibung der Option (übersetzt), \"(keine "
"Beschreibung)\" (übersetzt) falls keine Beschreibung vorhanden"
@@ -9546,8 +9546,8 @@ msgstr ""
#, c-format
msgid ""
"%s%s: if you want to add a standard server, use the command \"/server "
"add\" (see /help server); if you really want to add a temporary server (NOT "
"%s%s: if you want to add a standard server, use the command \"/server add\" "
"(see /help server); if you really want to add a temporary server (NOT "
"SAVED), turn on the option irc.look.temporary_servers"
msgstr ""
"%s%s: falls ein Standardserver erstellt werden soll, muss der Befehl \"/"
@@ -12351,6 +12351,11 @@ msgstr ""
"zeigt Notizen als private Nachricht an (wird die \"auto\" Einstellung "
"verwendet dann wird ein privater Buffer genutzt, falls vorhanden)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
@@ -12765,8 +12770,8 @@ msgid ""
"interval between two checks for notify with IRC command \"whois\" (in "
"minutes)"
msgstr ""
"Intervall zwischen zwei notify Überprüfungen mit dem IRC Befehl "
"\"whois\" (in Minuten)"
"Intervall zwischen zwei notify Überprüfungen mit dem IRC Befehl \"whois\" "
"(in Minuten)"
msgid ""
"cause SASL authentication failure when SASL is requested but unavailable on "
@@ -15156,19 +15161,19 @@ msgstr "%s%s: Interpreter kann nicht freigeben werden"
#, c-format
msgid ""
"%s%s: too few arguments received from client %s%s%s for resource "
"\"%s\" (received: %d arguments, expected: at least %d)"
"%s%s: too few arguments received from client %s%s%s for resource \"%s\" "
"(received: %d arguments, expected: at least %d)"
msgstr ""
"%s%s: Zu wenige Argumente von Client %s%s%s für die Ressource \"%s\" "
"erhalten (Empfangen: %d Argumente, mindestens erwartet: %d)"
#, c-format
msgid ""
"%s%s: too many arguments received from client %s%s%s for resource "
"\"%s\" (received: %d arguments, expected: at most %d)"
"%s%s: too many arguments received from client %s%s%s for resource \"%s\" "
"(received: %d arguments, expected: at most %d)"
msgstr ""
"%s%s: Zu viele Argumente von Client erhalten %s%s%s für die Ressource "
"\"%s\" (Empfangen: %d Argumente, höchstens erwartet: %d)"
"%s%s: Zu viele Argumente von Client erhalten %s%s%s für die Ressource \"%s\" "
"(Empfangen: %d Argumente, höchstens erwartet: %d)"
#, c-format
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
@@ -16309,8 +16314,8 @@ msgid ""
"%s%s: error: file with TLS certificate/key is not readable: \"%s\" (option "
"relay.network.tls_cert_key)"
msgstr ""
"%s%s: Fehler: Datei mit TLS Zertifikat/Schlüssel ist nicht lesbar: "
"\"%s\" (Option relay.network.tls_cert_key)"
"%s%s: Fehler: Datei mit TLS Zertifikat/Schlüssel ist nicht lesbar: \"%s\" "
"(Option relay.network.tls_cert_key)"
#, c-format
msgid "%s%s: unable to initialize priority for TLS"
@@ -16499,8 +16504,8 @@ msgstr ""
#, c-format
msgid ""
"%s%s: too few arguments received from client %s%s%s for command "
"\"%s\" (received: %d arguments, expected: at least %d)"
"%s%s: too few arguments received from client %s%s%s for command \"%s\" "
"(received: %d arguments, expected: at least %d)"
msgstr ""
"%s%s: Zu wenige Argumente von Client %s%s%s für den Befehl \"%s\" erhalten "
"(Empfangen: %d Argumente, mindestens Erwartet: %d)"
@@ -17670,20 +17675,20 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat"
#. TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated
msgid ""
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
"<name> <hook> "
"[\"<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>|"
"<mask>...] || restart <name>|<mask>... || show <name> || del <name>|"
"<mask>... || restore <name>|<mask>... || default -yes || monitor [<filter>]"
"<name> <hook> [\"<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>|<mask>...] || restart <name>|"
"<mask>... || show <name> || del <name>|<mask>... || restore <name>|<mask>... "
"|| default -yes || monitor [<filter>]"
msgstr ""
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
"<name> <hook> "
"[\"<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>|"
"<mask>...] || restart <name>|<mask>... || show <name> || del <name>|"
"<mask>... || restore <name>|<mask>... || default -yes || monitor [<filter>]"
"<name> <hook> [\"<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>|<mask>...] || restart <name>|"
"<mask>... || show <name> || del <name>|<mask>... || restore <name>|<mask>... "
"|| default -yes || monitor [<filter>]"
msgid "raw[list]: list triggers (without argument, this list is displayed)"
msgstr ""
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11384,6 +11384,11 @@ msgstr ""
"mostrar avisos como mensajes privados (si es auto, usa un buffer privado si "
"lo encuentra)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+10 -2
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-08-24 11:22+0200\n"
"PO-Revision-Date: 2024-09-02 18:47+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-09-02 19:02+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -12112,6 +12112,14 @@ msgstr ""
"afficher les notices comme des messages privés (si auto, utilise le tampon "
"privé s'il est trouvé)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
"liste des pseudos (séparés par des virgules) pour lesquels les notifications "
"sont désactivées dans les messages de notice (la comparaison est insensible "
"à la casse)"
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -10652,6 +10652,11 @@ msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr "figyelmeztetések privát üzenetként való mutatása"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11398,6 +11398,11 @@ msgstr ""
"visualizza notifiche come messaggi privati (se automatico, usa il buffer "
"privato se viene trovato)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -11810,6 +11810,11 @@ msgstr ""
"notice をプライベートメッセージとして表示 (auto の場合、プライベートバッファ"
"が見つかればそれを使用する)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-08-23 08:27+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11877,6 +11877,11 @@ msgstr ""
"wyświetlaj powiadomienia jako prywatne wiadomości (jeśli auto, używa "
"prywatnego bufora jeśli taki istnieje)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-08-12 21:35+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -11741,6 +11741,11 @@ msgstr ""
"mostrar notices como mensagens privadas (se for auto, usar buffer privado se "
"encontrado)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
#, fuzzy
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11021,6 +11021,11 @@ msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-06-11 07:49+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -10694,6 +10694,11 @@ msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr "отображать notice'ы в виде личных сообщений"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-08-24 10:56+0200\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11775,6 +11775,11 @@ msgstr ""
"приказ обавештења као приватних порука (ако је ауто, користи се приватни "
"бафер ако се пронађе)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+0200\n"
"PO-Revision-Date: 2024-08-12 21:36+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -11968,6 +11968,11 @@ msgstr ""
"özel iletilerde ihbarları görüntüle (auto ise bulunduğunda özel arabellek "
"kullan)"
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+6 -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: 2024-08-24 11:22+0200\n"
"POT-Creation-Date: 2024-09-02 19:53+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"
@@ -9691,6 +9691,11 @@ msgid ""
"display notices as private messages (if auto, use private buffer if found)"
msgstr ""
msgid ""
"comma separated list of nicks for which notifications are disabled in notice "
"messages (comparison is case insensitive)"
msgstr ""
msgid ""
"automatically redirect channel welcome notices to the channel buffer; such "
"notices have the nick as target but a channel name in beginning of notice "
+60
View File
@@ -110,6 +110,7 @@ struct t_config_option *irc_config_look_nicks_hide_password = NULL;
struct t_config_option *irc_config_look_notice_as_pv = NULL;
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_notice_nicks_disable_notify = 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;
@@ -644,6 +645,56 @@ irc_config_change_look_nicks_hide_password (const void *pointer, void *data,
}
}
/*
* Checks if we must notify for the notice message, according to the nick
* who sent it.
*
* Returns:
* 1: notification
* 0: no notification
*/
int
irc_config_notice_nick_notify (const char *nick)
{
const char *ptr_nicks;
char **nicks;
int rc, i, num_nicks;
if (!nick)
return 0;
ptr_nicks = weechat_config_string (irc_config_look_notice_nicks_disable_notify);
if (!ptr_nicks || !ptr_nicks[0])
return 1;
rc = 1;
nicks = weechat_string_split (
ptr_nicks,
",",
NULL,
WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_STRIP_RIGHT
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS,
0,
&num_nicks);
if (nicks)
{
for (i = 0; i < num_nicks; i++)
{
if (weechat_strcasecmp (nicks[i], nick) == 0)
{
rc = 0;
break;
}
}
weechat_string_free_split (nicks);
}
return rc;
}
/*
* Callback for changes on option "irc.look.topic_strip_colors".
*/
@@ -3584,6 +3635,15 @@ irc_config_init ()
"buffer if found)"),
"auto|never|always", 0, 0, "auto", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
irc_config_look_notice_nicks_disable_notify = weechat_config_new_option (
irc_config_file, irc_config_section_look,
"notice_nicks_disable_notify", "string",
N_("comma separated list of nicks for which notifications are "
"disabled in notice messages (comparison is case insensitive)"),
NULL, 0, 0, "chanserv,nickserv", NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
irc_config_look_notice_welcome_redirect = weechat_config_new_option (
irc_config_file, irc_config_section_look,
"notice_welcome_redirect", "boolean",
+1
View File
@@ -219,6 +219,7 @@ extern char **irc_config_nicks_hide_password;
extern int irc_config_num_nicks_hide_password;
extern int irc_config_display_channel_modes_arguments (const char *modes);
extern int irc_config_notice_nick_notify (const char *nick);
extern int irc_config_check_autojoin (const char *autojoin);
extern int irc_config_server_check_value_cb (const void *pointer, void *data,
struct t_config_option *option,
+3 -5
View File
@@ -2644,16 +2644,14 @@ IRC_PROTOCOL_CALLBACK(notice)
notify_private = 0;
if (ctxt->server->is_connected
&& ctxt->nick
&& (weechat_strcasecmp (ctxt->nick, "nickserv") != 0)
&& (weechat_strcasecmp (ctxt->nick, "chanserv") != 0)
&& (weechat_strcasecmp (ctxt->nick, "memoserv") != 0))
&& irc_config_notice_nick_notify (ctxt->nick))
{
/*
* add tag "notify_private" only if:
* - server is connected (message 001 already received)
* and:
* - notice is from a non-empty nick different from
* nickserv/chanserv/memoserv
* - notice is from a non-empty nick not present in option
* irc.look.notice_nicks_disable_notify
*/
notify_private = 1;
}
@@ -30,6 +30,26 @@ TEST_GROUP(IrcConfig)
{
};
/*
* Tests functions:
* irc_config_notice_nick_notify
*/
TEST(IrcConfig, NoticeNickNotify)
{
LONGS_EQUAL(0, irc_config_notice_nick_notify (NULL));
LONGS_EQUAL(1, irc_config_notice_nick_notify (""));
LONGS_EQUAL(1, irc_config_notice_nick_notify ("test"));
LONGS_EQUAL(1, irc_config_notice_nick_notify ("memoserv"));
/* default list of nicks preventing notification */
LONGS_EQUAL(0, irc_config_notice_nick_notify ("chanserv"));
LONGS_EQUAL(0, irc_config_notice_nick_notify ("ChanServ"));
LONGS_EQUAL(0, irc_config_notice_nick_notify ("nickserv"));
LONGS_EQUAL(0, irc_config_notice_nick_notify ("NickServ"));
}
/*
* Tests functions:
* irc_config_check_autojoin