Yes, we reply

This commit is contained in:
Dennis Kaarsemaker 2006-10-20 16:55:13 +02:00
parent 80ecfbfa19
commit 5a9dd4486f

View File

@ -243,6 +243,7 @@ class Bugtracker(callbacks.PluginRegexp):
r"""\b(?P<bt>(([a-z]+)?\s+bugs?|[a-z]+))\s+#?(?P<bug>\d+(?!\d*\.\d+)((,|\s*(and|en|et|und|ir))\s*#?\d+(?!\d*\.\d+))*)"""
if msg.args[0][0] == '#' and not self.registryValue('bugSnarfer', msg.args[0]):
return
msg.repliedTo = True
# Don't double on commands
s = str(msg).split(':')[2]
if s[0] in str(conf.supybot.reply.whenAddressedBy.chars):
@ -311,6 +312,7 @@ class Bugtracker(callbacks.PluginRegexp):
"(?P<tracker>https?://.*?)(show_bug.cgi\?id=|bugreport.cgi\?bug=|(bugs|\+bug)/|/ticket/|tracker/.*aid=)(?P<bug>\d+)(?P<sfurl>&group_id=\d+&at_id=\d+)?"
if msg.args[0][0] == '#' and not self.registryValue('bugSnarfer', msg.args[0]):
return
msg.repliedTo = True
try:
tracker = self.get_tracker(match.group(0),match.group('sfurl'))
if not tracker: