summaryrefslogtreecommitdiffstats
path: root/module/PluginManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-07 15:26:52 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-07 15:26:52 +0200
commitfe1a7f4c91639588598c74a0c27a91192fbba78b (patch)
tree8c62519373956b1a621673375b706fd94dfa3d4c /module/PluginManager.py
parentreconnect fix (diff)
downloadpyload-fe1a7f4c91639588598c74a0c27a91192fbba78b.tar.xz
hook improvements
Diffstat (limited to 'module/PluginManager.py')
-rw-r--r--module/PluginManager.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/PluginManager.py b/module/PluginManager.py
index 6815fed52..44a426d31 100644
--- a/module/PluginManager.py
+++ b/module/PluginManager.py
@@ -131,6 +131,9 @@ class PluginManager():
if config:
config = [ [y.strip() for y in x.replace("'","").replace('"',"").replace(")","").split(",")] for x in config[0].split("(") if x.strip()]
+ if folder == "hooks":
+ config.append( ["load", "bool", "Load on startup", True] )
+
for item in config:
self.core.config.addPluginConfig([name]+item)