Bots should not respond (incorrectly) to merge request URLs (LP: #868416)

This commit is contained in:
tsimpson 2012-09-27 13:53:50 +01:00
parent b038dca49c
commit 778ee4a23c

View File

@ -480,6 +480,8 @@ class Bugtracker(callbacks.PluginRegexp):
if 'launchpad' in snarfhost:
if not 'bug' in snarfhost: # Not a bug URL
return None
if snarfhost.lower().startswith("code."):
return None
if snarfhost.startswith('pad.lv'): # Launchpad URL shortening
snarfhost = snarfhost[:snarfhost.rfind('/')]