summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-06 14:40:21 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-06 14:40:21 +0200
commit8606861d9a33674c3de4e1fe50c8d9727abaf6ac (patch)
treee477336504aad64b6e3b738af1f8b3befba6cfbf /module/HookManager.py
parentwebif plugin config preparations (diff)
downloadpyload-8606861d9a33674c3de4e1fe50c8d9727abaf6ac.tar.xz
hook deactivating
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 1fd8a5844..b188de1a6 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -50,8 +50,10 @@ class HookManager():
#hookClass = getattr(plugin, plugin.__name__)
#@TODO config parsing and deactivating
plugin = pluginClass(self.core)
- plugins.append(plugin)
- self.log.info(_("%s activated") % pluginClass.__name__)
+ if plugin.isActivated():
+ #@TODO better selection
+ plugins.append(plugin)
+ self.log.info(_("%s activated") % pluginClass.__name__)
except:
self.log.warning(_("Failed activating %(name)s") % {"name":pluginClass.__name__})
if self.core.debug: