From 89c218702485c9faea9b6dd8f51e65ceffad3a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 28 Sep 2014 15:34:42 +0200 Subject: 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). --- src/plugins/trigger/trigger-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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" }, -- cgit v1.2.3