summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
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: