diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-04-23 14:15:41 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-04-23 14:15:41 +0200 |
commit | 2a2428902b021d6ea3535cc7b9700c3243879790 (patch) | |
tree | b12bee4d820bb8bd0dcc69122fb29205a8f03d9d /src | |
parent | 51ed9ec93e7f9562ffdca693f24d3a90c904d019 (diff) | |
download | weechat-2a2428902b021d6ea3535cc7b9700c3243879790.zip |
trigger: check that buffer notify is not "none" to run command of default trigger beep
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/trigger/trigger-config.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c index 3f72a54f5..b29349526 100644 --- a/src/plugins/trigger/trigger-config.c +++ b/src/plugins/trigger/trigger-config.c @@ -59,12 +59,16 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] = * - message is a highlight * OR: * - message is a message in a private buffer + * AND: + * - buffer notify is NOT "none" */ { "beep", "on", "print", "", - "${tg_displayed} && ${tg_tags} !!- ,notify_none, " - "&& (${tg_highlight} || ${tg_msg_pv})", + "${tg_displayed} " + "&& ${tg_tags} !!- ,notify_none, " + "&& (${tg_highlight} || ${tg_msg_pv}) " + "&& ${buffer.notify} > 0", "", "/print -beep", "ok", |