Allow disabling notifications

This commit is contained in:
2023-02-09 07:20:07 +00:00
parent c356f58d8a
commit 2a034a16e7
3 changed files with 7 additions and 0 deletions

View File

@@ -140,6 +140,9 @@ def rule_notify(rule, index, message, meta=None):
if not notification_settings:
# No/invalid notification settings, don't send anything
return
if notification_settings.get("service") == "none":
# Don't send anything
return
# Create a cast we can reuse for the formatting helpers and sendmsg
cast = {