From 0459d38132faf742d4918c4563bb578b14bd7d0b Mon Sep 17 00:00:00 2001 From: Krytarik Raido Date: Fri, 12 Jul 2019 00:56:04 +0200 Subject: [PATCH] Bugtracker: Fix error handling. --- Bugtracker/__init__.py | 2 +- Bugtracker/plugin.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Bugtracker/__init__.py b/Bugtracker/__init__.py index d6bdf37..8ef6cce 100644 --- a/Bugtracker/__init__.py +++ b/Bugtracker/__init__.py @@ -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'], diff --git a/Bugtracker/plugin.py b/Bugtracker/plugin.py index f0c0e3e..10e59f7 100644 --- a/Bugtracker/plugin.py +++ b/Bugtracker/plugin.py @@ -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: