From be45eb2e25c03bde1a7c8be413541ad0b7062db6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 6 Sep 2003 01:13:43 +0000 Subject: [PATCH] Reordered some statements. --- src/OwnerCommands.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/OwnerCommands.py b/src/OwnerCommands.py index 5c100808d..e3b4db0fc 100644 --- a/src/OwnerCommands.py +++ b/src/OwnerCommands.py @@ -212,9 +212,9 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg): module = imp.load_module(name, *moduleInfo) linecache.checkcache() callback = module.Class() + irc.addCallback(callback) if hasattr(callback, 'configure'): callback.configure(irc) - irc.addCallback(callback) irc.reply(msg, conf.replySuccess) ''' @@ -239,18 +239,18 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg): callbacks = irc.removeCallback(name) if callbacks: - for callback in callbacks: - callback.die() - del callback - gc.collect() try: moduleInfo = imp.find_module(name) module = imp.load_module(name, *moduleInfo) linecache.checkcache() + for callback in callbacks: + callback.die() + del callback + gc.collect() callback = module.Class() + irc.addCallback(callback) if hasattr(callback, 'configure'): callback.configure(irc) - irc.addCallback(callback) irc.reply(msg, conf.replySuccess) except ImportError: for callback in callbacks: