Make notifications configurable
This commit is contained in:
parent
917ef5c886
commit
d84d035edf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue