From ad62df7a957c28da2ab7afe67398a9def56dbba6 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 5 Dec 2006 20:52:20 +0000 Subject: Enumeration stuff beginneth! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5870 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_oper_hash.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 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 */ -- cgit v1.2.3