diff options
| author | 2006-12-05 20:52:20 +0000 | |
|---|---|---|
| committer | 2006-12-05 20:52:20 +0000 | |
| commit | ad62df7a957c28da2ab7afe67398a9def56dbba6 (patch) | |
| tree | a3a824f36d91c2b4a8d76bb581963d78779b6f1a /src/modules/m_oper_hash.cpp | |
| parent | And forgot a semicolon. (diff) | |
| download | inspircd++-ad62df7a957c28da2ab7afe67398a9def56dbba6.tar.gz inspircd++-ad62df7a957c28da2ab7afe67398a9def56dbba6.tar.bz2 inspircd++-ad62df7a957c28da2ab7afe67398a9def56dbba6.zip | |
Enumeration stuff beginneth!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5870 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_oper_hash.cpp')
| -rw-r--r-- | src/modules/m_oper_hash.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_oper_hash.cpp b/src/modules/m_oper_hash.cpp index be948b445..a83b9cc51 100644 --- a/src/modules/m_oper_hash.cpp +++ b/src/modules/m_oper_hash.cpp @@ -88,6 +88,8 @@ class ModuleOperHash : public Module int ID; ConfigReader* Conf; + std::map<std::string, Module*> hashers; + public: ModuleOperHash(InspIRCd* Me) @@ -102,6 +104,13 @@ class ModuleOperHash : public Module if (ml) { ServerInstance->Log(DEBUG, "Found interface 'HashRequest' containing %d modules", ml->size()); + + for (modulelist::iterator m = ml->begin(); m != ml->end(); ml++) + { + std::string name = HashNameRequest(this, *m).Send(); + hashers[name] = *m; + ServerInstance->Log(DEBUG, "Found HashRequest interface: '%s' -> '%08x'", name.c_str(), *m); + } } /* Try to find the md5 service provider, bail if it can't be found */ |
