From 6d1fa0e753073a00d9075227a6474f855157fc5d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 22 Feb 2011 23:14:43 +0100 Subject: captcha input via IRC, XMPP --- module/plugins/hooks/XMPPInterface.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins/hooks/XMPPInterface.py') diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py index a05d956d5..dc6928127 100644 --- a/module/plugins/hooks/XMPPInterface.py +++ b/module/plugins/hooks/XMPPInterface.py @@ -34,7 +34,8 @@ class XMPPInterface(IRCInterface, JabberClient): ("pw", "str", "Password", ""), ("owners", "str", "List of JIDs accepting commands from", "me@icq-gateway.org;some@msn-gateway.org"), ("info_file", "bool", "Inform about every file finished", "False"), - ("info_pack", "bool", "Inform about every package finished", "True")] + ("info_pack", "bool", "Inform about every package finished", "True"), + ("captcha", "bool", "Send captcha requests", "True")] __author_name__ = ("RaNaN") __author_mail__ = ("RaNaN@pyload.org") @@ -172,7 +173,9 @@ class XMPPInterface(IRCInterface, JabberClient): else: return True - + + def response(self, msg, origin=""): + return self.announce(msg) def announce(self, message): """ send message to all owners""" -- cgit v1.2.3