summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/CaptchaTrader.py3
-rw-r--r--module/plugins/hooks/IRCInterface.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/hooks/CaptchaTrader.py b/module/plugins/hooks/CaptchaTrader.py
index 985288090..88b928a50 100644
--- a/module/plugins/hooks/CaptchaTrader.py
+++ b/module/plugins/hooks/CaptchaTrader.py
@@ -101,6 +101,9 @@ class CaptchaTrader(Hook):
raise CaptchaTraderException(response[1])
def newCaptchaTask(self, task):
+ if not task.isTextual():
+ return False
+
if not self.getConfig("username") or not self.getConfig("passkey"):
return False
diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py
index 0142c3610..6fdb7622f 100644
--- a/module/plugins/hooks/IRCInterface.py
+++ b/module/plugins/hooks/IRCInterface.py
@@ -81,7 +81,7 @@ class IRCInterface(Thread, Hook):
pass
def newCaptchaTask(self, task):
- if self.getConfig("captcha"):
+ if self.getConfig("captcha") and task.isTextual():
task.handler.append(self)
task.setWaiting(60)