mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
qdb doesn't like to put ?'s in their URLs, so the snarfer wasn't catching qdb URLs properly
This commit is contained in:
parent
d15e7e8d7f
commit
c0439bb198
@ -151,7 +151,7 @@ class Geekquote(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
return s
|
return s
|
||||||
|
|
||||||
def geekSnarfer(self, irc, msg, match):
|
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]):
|
if not self.registryValue('geekSnarfer', msg.args[0]):
|
||||||
return
|
return
|
||||||
id = match.groupdict()['id']
|
id = match.groupdict()['id']
|
||||||
|
Loading…
Reference in New Issue
Block a user