diff options
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/Account.py | 2 | ||||
| -rw-r--r-- | module/plugins/accounts/HotfileCom.py | 5 | 
2 files changed, 5 insertions, 2 deletions
| diff --git a/module/plugins/Account.py b/module/plugins/Account.py index 727356ee4..d93ff7e08 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -180,7 +180,7 @@ class Account():      def empty(self, user):          if self.infos.has_key(user): -            self.core.log.warning(_("%(plugin)s Account %(user)s has not enough trafficE") % {"plugin" : self.__name__, "user": user}) +            self.core.log.warning(_("%(plugin)s Account %(user)s has not enough traffic") % {"plugin" : self.__name__, "user": user})              self.infos[user].update({"trafficleft": 0})      def expired(self, user): diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py index f623e56f1..52bff87fe 100644 --- a/module/plugins/accounts/HotfileCom.py +++ b/module/plugins/accounts/HotfileCom.py @@ -75,4 +75,7 @@ class HotfileCom(Account):          cj = self.getAccountCookies(user)          cj.setCookie("hotfile.com", "lang", "en")          req.load("http://hotfile.com/", cookies=True) -        req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]}, cookies=True) +        page = req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]}, cookies=True) + +        if "Bad username/password" in page: +            self.wrongPassword()
\ No newline at end of file | 
