diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 20:48:54 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 20:48:54 +0000 |
commit | 060887d2828b9153351e74362604548af08e9d79 (patch) | |
tree | 43a28b71642cc2952a40833fa44ca0406a260911 /src/modules/m_md5.cpp | |
parent | c3a7fb47d62c2f701782809a987747edd7bc7818 (diff) |
Allow for querying the hash modules for the hashing algorithm name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5868 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_md5.cpp')
-rw-r--r-- | src/modules/m_md5.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp index a42ccbb7e..d256b0f1c 100644 --- a/src/modules/m_md5.cpp +++ b/src/modules/m_md5.cpp @@ -310,6 +310,10 @@ class ModuleMD5 : public Module GenHash((const char*)MD5->GetHashData(), data, chars ? chars : "0123456789abcdef", key); return data; } + else if (strcmp("NAME", request->GetId()) == 0) + { + return "MD5"; + } else if (strcmp("RESET", request->GetId()) == 0) { ServerInstance->Log(DEBUG,"MD5 RESET!"); |