mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
bash.org changed their URL format a little
This commit is contained in:
parent
7ef00a2c6a
commit
85acfacf5d
@ -202,7 +202,10 @@ class Http(callbacks.Privmsg):
|
|||||||
id specifies which quote to retrieve.
|
id specifies which quote to retrieve.
|
||||||
"""
|
"""
|
||||||
id = privmsgs.getArgs(args, required=0, optional=1)
|
id = privmsgs.getArgs(args, required=0, optional=1)
|
||||||
id = id or 'random1'
|
if id:
|
||||||
|
id = 'quote=%s' % id
|
||||||
|
else:
|
||||||
|
id = 'random'
|
||||||
html = webutils.getUrl('http://bash.org/?%s' % id)
|
html = webutils.getUrl('http://bash.org/?%s' % id)
|
||||||
m = self._mlgeekquotere.search(html)
|
m = self._mlgeekquotere.search(html)
|
||||||
if m is None:
|
if m is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user