]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a regression in m_cloaking
authorThomas Fargeix <t.fargeix@gmail.com>
Mon, 29 Dec 2014 22:47:21 +0000 (23:47 +0100)
committerThomas Fargeix <t.fargeix@gmail.com>
Mon, 29 Dec 2014 22:47:21 +0000 (23:47 +0100)
5c7db14a5 made the cloak use hex-encoded hashes instead
of the binary output.

src/modules/m_cloaking.cpp

index e0f3f01ef143fc1bb6773bc4be30dfa88eb66e22..d0e7313b7c946bfdefbb26dde925e536a20267e2 100644 (file)
@@ -192,7 +192,7 @@ class ModuleCloaking : public Module
                input.append(1, '\0'); // null does not terminate a C++ string
                input.append(item);
 
-               std::string rv = Hash->Generate(input).substr(0,len);
+               std::string rv = Hash->GenerateRaw(input).substr(0,len);
                for(int i=0; i < len; i++)
                {
                        // this discards 3 bits per byte. We have an