Bugtracker: Fix error handling.
This commit is contained in:
@ -24,7 +24,7 @@ import supybot.world as world
|
||||
|
||||
from imp import reload
|
||||
|
||||
__version__ = "3.5.0"
|
||||
__version__ = "3.6.0"
|
||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@tuxgarage.com")
|
||||
__contributors__ = {
|
||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||
|
@ -410,8 +410,8 @@ class Bugtracker(callbacks.PluginRegexp):
|
||||
name = self.shorthand[snarfTarget.lower()]
|
||||
tracker = self.db[name]
|
||||
except:
|
||||
s = self.registryValue('replyNoBugtracker', name)
|
||||
irc.error(s % name)
|
||||
s = self.registryValue('replyNoBugtracker', channel)
|
||||
irc.error(s % (name or snarfTarget))
|
||||
return
|
||||
|
||||
for bugid in bugids:
|
||||
|
Reference in New Issue
Block a user