From 85acfacf5da11e4975af1c77c40f12d0c40e218d Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 31 Aug 2004 15:14:05 +0000 Subject: [PATCH] bash.org changed their URL format a little --- plugins/Http.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Http.py b/plugins/Http.py index e05cf4ef2..1d037be90 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -202,7 +202,10 @@ class Http(callbacks.Privmsg): id specifies which quote to retrieve. """ 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) m = self._mlgeekquotere.search(html) if m is None: