trigger: check that tag "notify_none" is not present in message to run command of default trigger beep (issue #1529)
This commit is contained in:
parent
2b16036f08
commit
e0e905ca7f
@ -21,6 +21,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
Bug fixes::
|
||||
|
||||
* core: do not add line with highlight and tag "notify_none" to hotlist (issue #1529)
|
||||
* trigger: add `${tg_tags} !!- ,notify_none,` in conditions of default trigger "beep" (issue #1529)
|
||||
|
||||
[[v2.9]]
|
||||
== Version 2.9 (2020-07-18)
|
||||
|
@ -17,6 +17,21 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
|
||||
(file _ChangeLog.adoc_ in sources).
|
||||
|
||||
|
||||
[[v3.0]]
|
||||
== Version 3.0 (under dev)
|
||||
|
||||
[[v3.0_trigger_beep]]
|
||||
=== Default "beep" trigger
|
||||
|
||||
The command of "beep" trigger is now executed only if the message does NOT
|
||||
contain the tag "notify_none" (in addition to existing conditions).
|
||||
|
||||
You can restore the default "beep" trigger with the following command:
|
||||
|
||||
----
|
||||
/trigger restore beep
|
||||
----
|
||||
|
||||
[[v2.9]]
|
||||
== Version 2.9 (2020-07-18)
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user