From 060887d2828b9153351e74362604548af08e9d79 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 5 Dec 2006 20:48:54 +0000 Subject: 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 --- src/modules/m_sha256.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules/m_sha256.cpp') diff --git a/src/modules/m_sha256.cpp b/src/modules/m_sha256.cpp index c5df2aad3..68b7ad3d9 100644 --- a/src/modules/m_sha256.cpp +++ b/src/modules/m_sha256.cpp @@ -279,6 +279,10 @@ class ModuleSHA256 : public Module SHA256((const char*)SHA->GetHashData(), data, strlen(SHA->GetHashData()), chars ? chars : "0123456789abcdef", key); return data; } + else if (strcmp("SUM", request->GetId()) == 0) + { + return "SHA256"; + } else if (strcmp("RESET", request->GetId()) == 0) { this->chars = NULL; -- cgit v1.2.3