summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/Account.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index 289e68f44..7867ccdcd 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -191,10 +191,12 @@ class Account():
def empty(self, user):
if self.infos.has_key(user):
- self.core.log.warning(_("%(plugin)s Account %(user)s has not enough traffic") % {"plugin" : self.__name__, "user": user})
+ self.core.log.warning(_("%(plugin)s Account %(user)s has not enough traffic, checking again in 30min") % {"plugin" : self.__name__, "user": user})
self.infos[user].update({"trafficleft": 0})
+ self.core.scheduler.addJob(30*60, self.getAccountInfo, [user])
def expired(self, user):
if self.infos.has_key(user):
- self.core.log.warning(_("%(plugin)s Account %(user)s is expired") % {"plugin" : self.__name__, "user": user})
+ self.core.log.warning(_("%(plugin)s Account %(user)s is expired, checking again in 1h") % {"plugin" : self.__name__, "user": user})
self.infos[user].update({"validuntil": time() - 1})
+ self.core.scheduler.addJob(60*60, self.getAccountInfo, [user])