diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 20:52:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 20:52:20 +0000 |
commit | ad62df7a957c28da2ab7afe67398a9def56dbba6 (patch) | |
tree | a3a824f36d91c2b4a8d76bb581963d78779b6f1a | |
parent | 86e94dcc9086861a15cc5e133a3ed46e8d4027ed (diff) |
Enumeration stuff beginneth!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5870 e03df62e-2008-0410-955e-edbf42e46eb7
-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 */ |