qdb doesn't like to put ?'s in their URLs, so the snarfer wasn't catching qdb URLs properly

This commit is contained in:
Kevin Murphy 2005-01-12 21:11:12 +00:00
parent d15e7e8d7f
commit c0439bb198

View File

@ -151,7 +151,7 @@ class Geekquote(callbacks.PrivmsgCommandAndRegexp):
return s
def geekSnarfer(self, irc, msg, match):
r'http://(?:www\.)?(?P<site>bash\.org|qdb\.us)/\?(?P<id>\d+)'
r'http://(?:www\.)?(?P<site>bash\.org|qdb\.us)/\??(?P<id>\d+)'
if not self.registryValue('geekSnarfer', msg.args[0]):
return
id = match.groupdict()['id']