diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_md5.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_oper_hash.cpp | 7 | ||||
-rw-r--r-- | src/modules/m_sha256.cpp | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp index f8ccda26b..a42ccbb7e 100644 --- a/src/modules/m_md5.cpp +++ b/src/modules/m_md5.cpp @@ -278,10 +278,12 @@ class ModuleMD5 : public Module ModuleMD5(InspIRCd* Me) : Module::Module(Me), key(NULL), chars(NULL) { + ServerInstance->PublishInterface("HashRequest", this); } virtual ~ModuleMD5() { + ServerInstance->UnpublishInterface("HashRequest", this); } void Implements(char* List) diff --git a/src/modules/m_oper_hash.cpp b/src/modules/m_oper_hash.cpp index de6b3f993..be948b445 100644 --- a/src/modules/m_oper_hash.cpp +++ b/src/modules/m_oper_hash.cpp @@ -97,6 +97,13 @@ class ModuleOperHash : public Module Conf = NULL; OnRehash(""); + modulelist* ml = ServerInstance->FindInterface("HashRequest"); + + if (ml) + { + ServerInstance->Log(DEBUG, "Found interface 'HashRequest' containing %d modules", ml->size()); + } + /* Try to find the md5 service provider, bail if it can't be found */ MD5Provider = ServerInstance->FindModule("m_md5.so"); if (MD5Provider) diff --git a/src/modules/m_sha256.cpp b/src/modules/m_sha256.cpp index 07bcab3ae..c5df2aad3 100644 --- a/src/modules/m_sha256.cpp +++ b/src/modules/m_sha256.cpp @@ -249,10 +249,12 @@ class ModuleSHA256 : public Module ModuleSHA256(InspIRCd* Me) : Module::Module(Me), key(NULL), chars(NULL) { + ServerInstance->PublishInterface("HashRequest", this); } virtual ~ModuleSHA256() { + ServerInstance->UnpublishInterface("HashRequest", this); } void Implements(char *List) |