diff --git a/src/plugin/Manager.cc b/src/plugin/Manager.cc index ce13397046..08321b0f1d 100644 --- a/src/plugin/Manager.cc +++ b/src/plugin/Manager.cc @@ -159,19 +159,15 @@ bool Manager::ActivateDynamicPluginInternal(const std::string& name, bool ok_if_ return false; } - if ( m->second == "" ) - // Already activated. - return true; - - std::string dir = m->second + "/"; - - if ( dir.empty() ) + if ( m->second.empty() ) { // That's our marker that we have already activated this // plugin. Silently ignore the new request. return true; } + std::string dir = m->second + "/"; + DBG_LOG(DBG_PLUGINS, "Activating plugin %s", name.c_str()); // Add the "scripts" and "bif" directories to ZEEKPATH.