diff options
author | Daniel Vassdal <shutter@canternet.org> | 2020-11-30 21:12:52 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-12-04 18:06:42 +0000 |
commit | b456adc15562f7e41c85fea84528cc0879233ee6 (patch) | |
tree | 25e3ff5d15eccf104503f80539256345ef1c3633 /src | |
parent | ffacccbb6fe800950af8b5914cbf5ebd3ecad99c (diff) |
Fix issue where m_pbkdf2 was not aware of services loaded before it
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_pbkdf2.cpp | 8 |
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 |