summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-07-20 21:08:59 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-07-20 21:08:59 +0200
commite0e905ca7fe5b1fd43b96538378204da6a4840e9 (patch)
tree8a9673dfd8c3306551b5d66f0bb0ba5a6711bc0f /src
parent2b16036f086974fdcb61f6963c00b40a5038b970 (diff)
downloadweechat-e0e905ca7fe5b1fd43b96538378204da6a4840e9.zip
trigger: check that tag "notify_none" is not present in message to run command of default trigger beep (issue #1529)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/trigger/trigger-config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c
index 83dcaa327..2bd8e3ca7 100644
--- a/src/plugins/trigger/trigger-config.c
+++ b/src/plugins/trigger/trigger-config.c
@@ -54,6 +54,8 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
* beep on highlight/private message, on following conditions:
* - message is displayed (not filtered)
* AND:
+ * - message does not have tag "notify_none"
+ * AND:
* - message is a highlight
* OR:
* - message is a message in a private buffer
@@ -61,7 +63,8 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
{ "beep", "on",
"print",
"",
- "${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})",
+ "${tg_displayed} && ${tg_tags} !!- ,notify_none, "
+ "&& (${tg_highlight} || ${tg_msg_pv})",
"",
"/print -beep",
"ok",