diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-25 00:36:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-25 00:36:23 +0000 |
commit | 1b5987bebe43c0c6c396e431f5385d9b0a88b3eb (patch) | |
tree | 58962cdacbd21a76380c925539db91dc629b044f | |
parent | efeaf434df7a2f3616793132a01b6c99e2fd63f3 (diff) |
Use segments of 8 in length not ten, reducing the length of a cloaked ipv6 host by 12 chars (2*6)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6834 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_cloaking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 19aac36aa..cb77177ed 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -228,7 +228,7 @@ class CloakUser : public ModeHandler { /* Send the Hash module a different hex table for each octet group's Hash sum */ HashHexRequest(Sender, HashProvider, xtab[(key1+rounds) % 4]).Send(); - hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,10)); + hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,8)); item = ""; } rounds++; @@ -237,7 +237,7 @@ class CloakUser : public ModeHandler { /* Send the Hash module a different hex table for each octet group's Hash sum */ HashHexRequest(Sender, HashProvider, xtab[(key1+rounds) % 4]).Send(); - hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,10)); + hashies.push_back(std::string(HashSumRequest(Sender, HashProvider, item).Send()).substr(0,8)); item = ""; } /* Stick them all together */ |