diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-10 18:15:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-10 18:15:34 +0000 |
commit | 93b0dec6654e1b8249c7b01a4820d861f9bac149 (patch) | |
tree | bfc553006bbd253531df6a78e24eeb9015978f18 /src/modules/m_cloaking.cpp | |
parent | 169ce29b39e1f7414f1500963b5d1b46585e9d55 (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
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r-- | src/modules/m_cloaking.cpp | 2 |
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. |