Bugtracker: Try and limit snarfer terms to trackers.
This commit is contained in:
parent
6c755906d7
commit
94210cea6b
|
@ -23,7 +23,7 @@ import supybot
|
|||
import supybot.world as world
|
||||
from importlib import reload
|
||||
|
||||
__version__ = "5.0.0"
|
||||
__version__ = "5.1.0"
|
||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||
__contributors__ = {
|
||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||
|
|
|
@ -390,6 +390,10 @@ class Bugtracker(callbacks.PluginRegexp):
|
|||
irc.error(s % (name or snarfTarget))
|
||||
return
|
||||
|
||||
if bugtype in ('issue', 'pull', 'pr', 'merge', 'mr') and \
|
||||
tracker.trackertype not in ('github', 'gitlab', 'gitea', 'sourceforge'):
|
||||
return
|
||||
|
||||
for bugid in bugids:
|
||||
try:
|
||||
report = self.get_bug(channel or msg.nick, irc.network, tracker, bugtype, bugid,
|
||||
|
|
Loading…
Reference in New Issue