From 62ef06e030180ea8ba2fd31c41c40246a3ade740 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 12 Dec 2010 18:39:25 +0100 Subject: missing files... --- module/plugins/Account.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/plugins') 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]) -- cgit v1.2.3