From d26b311fef22e35842adc590093155b2e48af231 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 19 Aug 2004 16:51:57 +0000 Subject: [PATCH] Let's make sure we unregister configuration-wise before we check to see if the plugin isn't loaded. --- src/Owner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Owner.py b/src/Owner.py index c38fdd145..0f615da6a 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -552,13 +552,15 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg): if ircutils.strEqual(name, self.name()): irc.error('You can\'t unload the %s plugin.' % name) return + # Let's do this so even if the plugin isn't currently loaded, it doesn't + # stay attempting to load. + conf.registerPlugin(name, False) callbacks = irc.removeCallback(name) if callbacks: for callback in callbacks: callback.die() del callback gc.collect() - conf.registerPlugin(name, False) irc.replySuccess() else: irc.error('There was no plugin %s.' % name)