Skip to content

Commit

Permalink
irc: add option irc.look.ignore_tag_messages (closes #989)
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Oct 15, 2023
1 parent 3898449 commit 9bc9df4
Show file tree
Hide file tree
Showing 19 changed files with 145 additions and 49 deletions.
1 change: 1 addition & 0 deletions ChangeLog.adoc
Expand Up @@ -16,6 +16,7 @@ For a list of important changes that require manual actions, please look at rele
New features::

* core, alias, trigger: allow wildcard in commands `/bar`, `/item`, `/proxy`, `/alias` and `/trigger` (issue #1956)
* irc: add option irc.look.ignore_tag_messages (issue #989)

Build::

Expand Down
7 changes: 6 additions & 1 deletion po/cs.po
Expand Up @@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -9503,6 +9503,11 @@ msgid ""
"allowed in tags; an empty value allows highlight on any tag"
msgstr ""

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/de.po
Expand Up @@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+0200\n"
"PO-Revision-Date: 2023-10-11 07:51+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
Expand Down Expand Up @@ -12075,6 +12075,11 @@ msgstr ""
"kann verwendet werden um mehr als ein Tag zu markieren; wird kein Wert "
"angegeben, erzeugt jedes Tag ein Highlight"

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/es.po
Expand Up @@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -10209,6 +10209,11 @@ msgid ""
"allowed in tags; an empty value allows highlight on any tag"
msgstr ""

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
12 changes: 10 additions & 2 deletions po/fr.po
Expand Up @@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"PO-Revision-Date: 2023-10-15 16:20+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+0200\n"
"PO-Revision-Date: 2023-10-15 18:45+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
Expand Down Expand Up @@ -11620,6 +11620,14 @@ msgstr ""
"caractère joker \"*\" est autorisé dans les étiquettes ; une valeur vide "
"autorise le highlight sur n'importe quelle étiquette"

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""
"ajouter l'étiquette \"irc_ignored\" sur les messages ignorés au lieu de les "
"supprimer ; de cette façon les messages peuvent être filtrés avec la "
"commande /filter et affichés/cachés sur demande"

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/hu.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -8956,6 +8956,11 @@ msgid ""
"allowed in tags; an empty value allows highlight on any tag"
msgstr ""

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/it.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -9924,6 +9924,11 @@ msgid ""
"allowed in tags; an empty value allows highlight on any tag"
msgstr ""

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/ja.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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/"
Expand Down Expand Up @@ -11177,6 +11177,11 @@ msgstr ""
"合には \"+\" 使ってください; ワイルドカード \"*\" を使うことができます; 任意"
"のタグをハイライトさせるには空値を指定してください"

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/pl.po
Expand Up @@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -12518,6 +12518,11 @@ msgstr ""
"logicznego \"i\" pomiędzy tagami; wildcard \"*\" jest dozwolony w tagach; "
"pusta wartość zezwala na podświetlenia przez dowolny tag"

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/pt.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+0200\n"
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
Expand Down Expand Up @@ -10884,6 +10884,11 @@ msgstr ""
"tags; o caráter universal \"*\" é permitido nas tags; um valor vazio permite "
"realçar em qualquer tag"

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/pt_BR.po
Expand Up @@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -9540,6 +9540,11 @@ msgid ""
"allowed in tags; an empty value allows highlight on any tag"
msgstr ""

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/ru.po
Expand Up @@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -8990,6 +8990,11 @@ msgid ""
"allowed in tags; an empty value allows highlight on any tag"
msgstr ""

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/sr.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -11731,6 +11731,11 @@ msgstr ""
"запетама и „+” може да се користи за логичко „и” између ознака; и ознакама "
"је дозвољен џокер „*”; празна вредност дозвољава истицање било које ознаке"

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/tr.po
Expand Up @@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+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"
Expand Down Expand Up @@ -12015,6 +12015,11 @@ msgstr ""
"yapmak için kullanılabilir; etiketlerde \"*\" jokerine izin verilir; boş bir "
"değer herhangi bir etikette vurgulamaya izin verir"

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
7 changes: 6 additions & 1 deletion po/weechat.pot
Expand Up @@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2023-10-15 16:19+0200\n"
"POT-Creation-Date: 2023-10-15 18:42+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
Expand Down Expand Up @@ -8058,6 +8058,11 @@ msgid ""
"allowed in tags; an empty value allows highlight on any tag"
msgstr ""

msgid ""
"add tag \"irc_ignored\" in ignored messages instead of removing them; that "
"way messages can be filtered with /filter command and toggled on-demand"
msgstr ""

msgid ""
"hide channel modes arguments if at least one of these modes is in channel "
"modes (\"*\" to always hide all arguments, empty value to never hide "
Expand Down
11 changes: 11 additions & 0 deletions src/plugins/irc/irc-config.c
Expand Up @@ -87,6 +87,7 @@ struct t_config_option *irc_config_look_highlight_channel = NULL;
struct t_config_option *irc_config_look_highlight_pv = NULL;
struct t_config_option *irc_config_look_highlight_server = NULL;
struct t_config_option *irc_config_look_highlight_tags_restrict = NULL;
struct t_config_option *irc_config_look_ignore_tag_messages = NULL;
struct t_config_option *irc_config_look_item_channel_modes_hide_args = NULL;
struct t_config_option *irc_config_look_item_display_server = NULL;
struct t_config_option *irc_config_look_item_nick_modes = NULL;
Expand Down Expand Up @@ -3218,6 +3219,16 @@ irc_config_init ()
NULL, NULL, NULL,
&irc_config_change_look_highlight_tags_restrict, NULL, NULL,
NULL, NULL, NULL);
irc_config_look_ignore_tag_messages = weechat_config_new_option (
irc_config_file, irc_config_section_look,
"ignore_tag_messages", "boolean",
N_("add tag \"irc_ignored\" in ignored messages instead of removing "
"them; that way messages can be filtered with /filter command "
"and toggled on-demand"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
irc_config_look_item_channel_modes_hide_args = weechat_config_new_option (
irc_config_file, irc_config_section_look,
"item_channel_modes_hide_args", "string",
Expand Down
1 change: 1 addition & 0 deletions src/plugins/irc/irc-config.h
Expand Up @@ -122,6 +122,7 @@ extern struct t_config_option *irc_config_look_highlight_channel;
extern struct t_config_option *irc_config_look_highlight_pv;
extern struct t_config_option *irc_config_look_highlight_server;
extern struct t_config_option *irc_config_look_highlight_tags_restrict;
extern struct t_config_option *irc_config_look_ignore_tag_messages;
extern struct t_config_option *irc_config_look_item_channel_modes_hide_args;
extern struct t_config_option *irc_config_look_item_display_server;
extern struct t_config_option *irc_config_look_item_nick_modes;
Expand Down

0 comments on commit 9bc9df4

Please sign in to comment.