From d84d035edff6452957476bd628fc69e776e4fa9d Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 13 Jun 2022 17:12:14 +0100 Subject: [PATCH] Make notifications configurable --- handler/ux/notify.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/ux/notify.py b/handler/ux/notify.py index cf0caca..158a1b3 100644 --- a/handler/ux/notify.py +++ b/handler/ux/notify.py @@ -12,6 +12,8 @@ class Notify(util.Base): """ def sendmsg(self, msg, title=None, priority=None, tags=None): + if settings.Notify.Enabled == "0": + return headers = {"Title": "Bot"} if title: headers["Title"] = title