mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +01:00
Fixed bug #708321
This commit is contained in:
parent
dd35f8f610
commit
bbe6cbc05d
@ -33,6 +33,7 @@ from baseplugin import *
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
import urllib
|
||||||
import urllib2
|
import urllib2
|
||||||
import threading
|
import threading
|
||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
@ -107,7 +108,7 @@ class Http(callbacks.Privmsg):
|
|||||||
|
|
||||||
def foldoc(self, irc, msg, args):
|
def foldoc(self, irc, msg, args):
|
||||||
"<something to lookup on foldoc>"
|
"<something to lookup on foldoc>"
|
||||||
search = '+'.join(args)
|
search = '+'.join([urllib.quote(arg) for arg in args])
|
||||||
url = 'http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=%s' % search
|
url = 'http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=%s' % search
|
||||||
try:
|
try:
|
||||||
fd = urllib2.urlopen(url)
|
fd = urllib2.urlopen(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user