From 28e340d990bfb33d4e3cacda95145761abffc462 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Thu, 22 Oct 2015 03:01:08 +0200 Subject: Spare code cosmetics --- module/plugins/internal/Notifier.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/plugins/internal/Notifier.py') diff --git a/module/plugins/internal/Notifier.py b/module/plugins/internal/Notifier.py index b397b8f38..d0fd28906 100644 --- a/module/plugins/internal/Notifier.py +++ b/module/plugins/internal/Notifier.py @@ -9,7 +9,7 @@ from module.plugins.internal.utils import isiterable class Notifier(Addon): __name__ = "Notifier" __type__ = "hook" - __version__ = "0.03" + __version__ = "0.04" __status__ = "testing" __config__ = [("activated" , "bool", "Activated" , False), @@ -96,12 +96,14 @@ class Notifier(Addon): if elapsed_time < self.get_config("sendtimewait"): return - if elapsed_time > 60: + elif elapsed_time > 60: self.notifications = 0 elif self.notifications >= self.get_config("sendpermin"): return + self.log_info(_("Sending notification...")) + try: resp = self.send(event, msg, key) -- cgit v1.2.3