summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-09-28 15:34:42 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-09-28 15:34:42 +0200
commit89c218702485c9faea9b6dd8f51e65ceffad3a8f (patch)
tree5fa883c47ab1f7b5f9bbbb2a01d08e36f91e1ad7 /src
parent0462aec0b43ab5a3e9cdc8d3416d6beff9ee9423 (diff)
downloadweechat-89c218702485c9faea9b6dd8f51e65ceffad3a8f.zip
trigger: add "${tg_displayed}" in conditions of default trigger "beep"
The command of "beep" trigger is now executed only if the message is displayed (not filtered with /filter).
Diffstat (limited to 'src')
-rw-r--r--src/plugins/trigger/trigger-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c
index 2b75e2bea..020050cfd 100644
--- a/src/plugins/trigger/trigger-config.c
+++ b/src/plugins/trigger/trigger-config.c
@@ -53,7 +53,7 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
{ "beep", "on",
"print",
"",
- "${tg_highlight} || ${tg_msg_pv}",
+ "${tg_displayed) && (${tg_highlight} || ${tg_msg_pv})",
"",
"/print -beep",
"ok" },