diff options
| author | 2010-08-07 15:26:52 +0200 | |
|---|---|---|
| committer | 2010-08-07 15:26:52 +0200 | |
| commit | fe1a7f4c91639588598c74a0c27a91192fbba78b (patch) | |
| tree | 8c62519373956b1a621673375b706fd94dfa3d4c /module/PluginManager.py | |
| parent | reconnect fix (diff) | |
| download | pyload-fe1a7f4c91639588598c74a0c27a91192fbba78b.tar.xz | |
hook improvements
Diffstat (limited to 'module/PluginManager.py')
| -rw-r--r-- | module/PluginManager.py | 3 | 
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)  | 
