summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-10 18:15:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-10 18:15:34 +0000
commit93b0dec6654e1b8249c7b01a4820d861f9bac149 (patch)
treebfc553006bbd253531df6a78e24eeb9015978f18
parent169ce29b39e1f7414f1500963b5d1b46585e9d55 (diff)
Host cloaks for resolved hosts are wayyyy too long, cut the hash down to the first 8 chars
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5918 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_cloaking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 7d2a4bc95..ffa189007 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -94,7 +94,7 @@ class CloakUser : public ModeHandler
HashHexRequest(Sender, HashProvider, xtab[(*dest->host) % 4]);
/* Generate a cloak using specialized Hash */
- std::string hostcloak = prefix + "-" + HashSumRequest(Sender, HashProvider, dest->host).Send() + a;
+ std::string hostcloak = prefix + "-" + std::string(HashSumRequest(Sender, HashProvider, dest->host).Send()).substr(0,8) + a;
/* Fix by brain - if the cloaked host is > the max length of a host (64 bytes
* according to the DNS RFC) then tough titty, they get cloaked as an IP.