bash.org changed their URL format a little

This commit is contained in:
James Vega 2004-08-31 15:14:05 +00:00
parent 7ef00a2c6a
commit 85acfacf5d

View File

@ -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: