]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hash.h
Fix double dot in half-cloaked resolved hosts
[user/henk/code/inspircd.git] / src / modules / m_hash.h
index f39d0eee748b676db2a0556c3fb6861a0ca5bc8a..08a24eb8548f99e1a18c25efbe06c1b430c57b20 100644 (file)
@@ -46,7 +46,7 @@ struct HashNameRequest : public Request
 struct HashRequest : public Request
 {
        const std::string data;
-       std::string result;
+       std::string binresult;
        /** Initialize HashSumRequest for sending.
         * @param Me A pointer to the sending module
         * @param Target A pointer to the hashing module
@@ -57,6 +57,10 @@ struct HashRequest : public Request
        {
                Send();
        }
+       inline std::string hex()
+       {
+               return BinToHex(binresult);
+       }
 };
 
 /** Allows the IVs for the hash to be specified. As the choice of initial IV is