diff options
Diffstat (limited to 'src/plugins/plugins.c')
-rw-r--r-- | src/plugins/plugins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index a7aab152a..06b96b4fb 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -851,7 +851,7 @@ plugin_unload_all () */ void -plugin_init () +plugin_init (int auto_load) { char *list_plugins, *pos, *pos2; @@ -859,7 +859,7 @@ plugin_init () plugin_config_read (); /* auto-load plugins if asked */ - if (cfg_plugins_autoload && cfg_plugins_autoload[0]) + if (auto_load && cfg_plugins_autoload && cfg_plugins_autoload[0]) { if (ascii_strcasecmp (cfg_plugins_autoload, "*") == 0) plugin_auto_load (); |