diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 20:20:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 20:20:13 +0000 |
commit | 743b5409f88ce65c69c44ebde7ef19c4cf7f0bcf (patch) | |
tree | a4f55d00074d66d7b4e44fe7ae587572075bf311 /src/modules/m_md5.cpp | |
parent | e770f8d983bc4eb674956ca365a70598615948f5 (diff) |
Fix all this.
TODO: A system to group together modules which share an identical request/event API, so m_oper_hash can enumerate modules which implement HashRequest
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5866 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_md5.cpp')
-rw-r--r-- | src/modules/m_md5.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp index a753ef577..f8ccda26b 100644 --- a/src/modules/m_md5.cpp +++ b/src/modules/m_md5.cpp @@ -292,6 +292,7 @@ class ModuleMD5 : public Module virtual char* OnRequest(Request* request) { HashRequest* MD5 = (HashRequest*)request; + ServerInstance->Log(DEBUG,"MD5 REQUEST type %s", request->GetId()); if (strcmp("KEY", request->GetId()) == 0) { this->key = (unsigned int*)MD5->GetKeyData(); @@ -302,12 +303,14 @@ class ModuleMD5 : public Module } else if (strcmp("SUM", request->GetId()) == 0) { + ServerInstance->Log(DEBUG,"MD5 SUM!"); static char data[MAXBUF]; GenHash((const char*)MD5->GetHashData(), data, chars ? chars : "0123456789abcdef", key); return data; } else if (strcmp("RESET", request->GetId()) == 0) { + ServerInstance->Log(DEBUG,"MD5 RESET!"); this->chars = NULL; this->key = NULL; } |