diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index 90218c9b3..9793decff 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -433,7 +433,7 @@ Monitor::Monitor( } #if ZM_PLUGINS_ON - if ( config.load_plugins && ( ( purpose == ANALYSIS ) || ( purpose == QUERY_PLUGINS ) ) ) + if ( ( purpose == QUERY_PLUGINS ) || ( config.load_plugins && ( purpose == ANALYSIS ) ) ) { Info("Load plugins from the directory %s ... ", config.path_plugins); ThePluginManager.setPluginExt(std::string(config.plugin_extension));