From 1bfa48143c04504181d1b194af151fae2dac1eb1 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 24 Apr 2010 14:20:21 -0500 Subject: Fix IPv6 cloaking in compatability mode (was using the wrong xtab confusor) --- src/modules/m_cloaking.cpp | 4 ++-- 1 file 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(); -- cgit v1.2.3