Only enable plugins that are enabled in the core.

This commit is contained in:
Andrew Resch 2007-12-16 11:10:12 +00:00
parent 02fe961a8a
commit 419333b9cb
2 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
"""Start the plugin manager""" """Start the plugin manager"""
# Update the enabled_plugins from the core # Update the enabled_plugins from the core
enabled_plugins = client.get_enabled_plugins() enabled_plugins = client.get_enabled_plugins()
enabled_plugins += self.config["enabled_plugins"] log.debug("Core has these plugins enabled: %s", enabled_plugins)
enabled_plugins = list(set(enabled_plugins))
self.config["enabled_plugins"] = enabled_plugins self.config["enabled_plugins"] = enabled_plugins
# Enable the plugins that are enabled in the config and core # Enable the plugins that are enabled in the config and core