diff options
| author | 2010-04-24 14:20:21 -0500 | |
|---|---|---|
| committer | 2010-04-24 14:20:21 -0500 | |
| commit | 1bfa48143c04504181d1b194af151fae2dac1eb1 (patch) | |
| tree | 666fed028c938eb6d24d8c2d8f1faa56d465cf24 | |
| parent | Add custom suffix support for 2.0-style IP cloaking (default of ".IP") (diff) | |
Fix IPv6 cloaking in compatability mode (was using the wrong xtab confusor)
| -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 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(); |
