From 275ecd47f14ebee8309de1e1f13d090ca50c38fe Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sun, 10 Jan 2016 02:12:35 +0200 Subject: "is" is evil (2) --- module/plugins/hooks/BypassCaptcha.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/hooks/BypassCaptcha.py') diff --git a/module/plugins/hooks/BypassCaptcha.py b/module/plugins/hooks/BypassCaptcha.py index bc28b1469..700eb3b0a 100644 --- a/module/plugins/hooks/BypassCaptcha.py +++ b/module/plugins/hooks/BypassCaptcha.py @@ -28,7 +28,7 @@ class BypassCaptchaException(Exception): class BypassCaptcha(Addon): __name__ = "BypassCaptcha" __type__ = "hook" - __version__ = "0.10" + __version__ = "0.11" __status__ = "testing" __config__ = [("activated" , "bool" , "Activated" , False), @@ -115,12 +115,12 @@ class BypassCaptcha(Addon): def captcha_correct(self, task): - if task.data['service'] is self.classname and "ticket" in task.data: + if task.data['service'] == self.classname and "ticket" in task.data: self.respond(task.data['ticket'], True) def captcha_invalid(self, task): - if task.data['service'] is self.classname and "ticket" in task.data: + if task.data['service'] == self.classname and "ticket" in task.data: self.respond(task.data['ticket'], False) -- cgit v1.2.3