summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-04-24 14:20:21 -0500
committerDaniel De Graaf <danieldg@inspircd.org>2010-04-24 14:20:21 -0500
commit1bfa48143c04504181d1b194af151fae2dac1eb1 (patch)
tree666fed028c938eb6d24d8c2d8f1faa56d465cf24 /src
parent4c350a20726c2b81773758c4301c739c27802493 (diff)
Fix IPv6 cloaking in compatability mode (was using the wrong xtab confusor)
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cloaking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 03ea90fbd..a8a553dbe 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -247,14 +247,14 @@ class ModuleCloaking : public Module
item += *input;
if (item.length() > 7)
{
- hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[1]+rounds) % 4], item).substr(0,8));
+ hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[0]+rounds) % 4], item).substr(0,8));
item.clear();
}
rounds++;
}
if (!item.empty())
{
- hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[1]+rounds) % 4], item).substr(0,8));
+ hashies.push_back(Hash->sumIV(compatkey, xtab[(compatkey[0]+rounds) % 4], item).substr(0,8));
}
/* Stick them all together */
return irc::stringjoiner(":", hashies, 0, hashies.size() - 1).GetJoined();