diff options
| author | 2011-02-12 21:47:23 +0100 | |
|---|---|---|
| committer | 2011-02-12 21:47:23 +0100 | |
| commit | 21aa78672f76da16716e163c950b63fd3a46e2fd (patch) | |
| tree | 8804a23d94b85f4b6415e49fba5c696799fe79f3 /module/plugins | |
| parent | basic thrift client (diff) | |
| download | pyload-21aa78672f76da16716e163c950b63fd3a46e2fd.tar.xz | |
cleanup
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/Account.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py index ae9038eed..b8de4ddf0 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -22,6 +22,8 @@ from random import choice from time import time from traceback import print_exc +from module.utils import compare_time + class WrongPassword(Exception): pass @@ -164,7 +166,7 @@ class Account(): try: time_data = data["options"]["time"][0] start, end = time_data.split("-") - if not self.core.compare_time(start.split(":"), end.split(":")): + if not compare_time(start.split(":"), end.split(":")): continue except: self.core.log.warning(_("Your Time %s has wrong format, use: 1:22-3:44") % time_data) |
