summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-12 02:25:05 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-12 02:25:05 +0100
commit9084b84b92b4e1a23d599872356d4a67c2c2b980 (patch)
tree5eda5be2107f80f20aa82e61bda2d85f880a64d6 /module/plugins/hooks
parent[Captcha9kw] Fix str.strip (diff)
downloadpyload-9084b84b92b4e1a23d599872356d4a67c2c2b980.tar.xz
[Captcha9kw] Fix str.strip 2
Diffstat (limited to 'module/plugins/hooks')
-rwxr-xr-xmodule/plugins/hooks/Captcha9kw.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/Captcha9kw.py b/module/plugins/hooks/Captcha9kw.py
index ff604080d..327878ab7 100755
--- a/module/plugins/hooks/Captcha9kw.py
+++ b/module/plugins/hooks/Captcha9kw.py
@@ -17,7 +17,7 @@ from module.plugins.Hook import Hook
class Captcha9kw(Hook):
__name__ = "Captcha9kw"
__type__ = "hook"
- __version__ = "0.20"
+ __version__ = "0.21"
__config__ = [("activated", "bool", "Activated", True),
("force", "bool", "Force captcha resolving even if client is connected", True),
@@ -86,7 +86,7 @@ class Captcha9kw(Hook):
'selfsolve' : self.getConfig("selfsolve"),
'cph' : self.getConfig("captchaperhour")}
- for opt in self.getConfig("hoster_options").split('|'):
+ for opt in str(self.getConfig("hoster_options").split('|')):
details = map(str.strip, opt.split(':'))
@@ -174,7 +174,7 @@ class Captcha9kw(Hook):
else:
self.fail(_("Too many captchas in queue"))
- for opt in self.getConfig("hoster_options").split('|'):
+ for opt in str(self.getConfig("hoster_options").split('|')):
details = map(str.strip, opt.split(':'))
if not details or details[0].lower() != pluginname.lower():