summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_pbkdf2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_pbkdf2.cpp b/src/modules/m_pbkdf2.cpp
index 90fa54a77..077390741 100644
--- a/src/modules/m_pbkdf2.cpp
+++ b/src/modules/m_pbkdf2.cpp
@@ -209,6 +209,14 @@ class ModulePBKDF2 : public Module
stdalgo::delete_all(providers);
}
+ void init() CXX11_OVERRIDE
+ {
+ // Let ourself know about any existing services.
+ const ModuleManager::DataProviderMap& dataproviders = ServerInstance->Modules->DataProviders;
+ for (ModuleManager::DataProviderMap::const_iterator it = dataproviders.begin(); it != dataproviders.end(); ++it)
+ OnServiceAdd(*it->second);
+ }
+
void OnServiceAdd(ServiceProvider& provider) CXX11_OVERRIDE
{
// Check if it's a hash provider