diff options
| author | 2007-04-25 00:36:23 +0000 | |
|---|---|---|
| committer | 2007-04-25 00:36:23 +0000 | |
| commit | 1b5987bebe43c0c6c396e431f5385d9b0a88b3eb (patch) | |
| tree | 58962cdacbd21a76380c925539db91dc629b044f /src/modules/m_cloaking.cpp | |
| parent | dhost and host are both char[65], so let stringcopy take up to 64 chars here. (diff) | |
| download | inspircd++-1b5987bebe43c0c6c396e431f5385d9b0a88b3eb.tar.gz inspircd++-1b5987bebe43c0c6c396e431f5385d9b0a88b3eb.tar.bz2 inspircd++-1b5987bebe43c0c6c396e431f5385d9b0a88b3eb.zip | |
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
Diffstat (limited to 'src/modules/m_cloaking.cpp')
| -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 */ |
