diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-08 02:09:45 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-08 02:15:53 +0100 |
commit | b25bc61dd47d8d3c42969bd0f72443b21c4b059e (patch) | |
tree | 6115841c9763289bd400c6171508f397d3526bf5 /module/plugins/hooks/IRCInterface.py | |
parent | [ZippyshareCom] Typo (diff) | |
download | pyload-b25bc61dd47d8d3c42969bd0f72443b21c4b059e.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/IRCInterface.py')
-rw-r--r-- | module/plugins/hooks/IRCInterface.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index 98fa1d030..623f2d1bf 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -79,10 +79,10 @@ class IRCInterface(Thread, Hook): task.handler.append(self) task.setWaiting(60) - page = getURL("http://www.freeimagehosting.net/upload.php", + html = getURL("http://www.freeimagehosting.net/upload.php", post={"attached": (FORM_FILE, task.captchaFile)}, multipart=True) - url = re.search(r"\[img\]([^\[]+)\[/img\]\[/url\]", page).group(1) + url = re.search(r"\[img\]([^\[]+)\[/img\]\[/url\]", html).group(1) self.response(_("New Captcha Request: %s") % url) self.response(_("Answer with 'c %s text on the captcha'") % task.id) |