mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fix the snarfer re so that it does match extraneous text
This commit is contained in:
parent
15b18edc11
commit
fcd4919bab
@ -168,7 +168,7 @@ class Bugzilla(callbacks.PrivmsgCommandAndRegexp, plugins.Toggleable):
|
||||
irc.reply(msg, 'Defined bugzillae: %s' % ' '.join(results))
|
||||
return
|
||||
def bzSnarfer(self, irc, msg, match):
|
||||
r"(.*)/show_bug.cgi\?id=([0-9]+)"
|
||||
r"(http://\S+)/show_bug.cgi\?id=([0-9]+)"
|
||||
if not self.toggles.get('bug', channel=msg.args[0]):
|
||||
return
|
||||
queryurl = '%s/xml.cgi?id=%s' % (match.group(1), match.group(2))
|
||||
|
Loading…
Reference in New Issue
Block a user