summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 22:23:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 22:23:43 +0000
commitceafaa5e7a3f9c6eb78bf2823212ecff92d393c7 (patch)
treeea24e299820e5c20227027fc551960aa3da931d7
parent2715adbcf7c6127900717bde2bbd7fe946a53800 (diff)
Swap some stuff around, just to complicate bruteforcing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5727 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_cloaking.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index c1236765e..9d0cda71f 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -356,10 +356,10 @@ class CloakUser : public ModeHandler
std::string octet3 = seps.GetToken();
std::string octet4 = seps.GetToken();
ServerInstance->Log(DEBUG,"oct1=%s, oct2=%s, oct3=%s, oct4=%s", octet1.c_str(), octet2.c_str(), octet3.c_str(), octet4.c_str());
- this->GenHash(octet1.c_str(),ra1, (key1+atoi(octet1.c_str())) % 4);
- this->GenHash(octet2.c_str(),ra2, (key2+atoi(octet2.c_str())) % 4);
- this->GenHash(octet3.c_str(),ra3, (key3+atoi(octet3.c_str())) % 4);
- this->GenHash(octet4.c_str(),ra4, (key4+atoi(octet4.c_str())) % 4);
+ this->GenHash(octet1.c_str(),ra1, (key1+atoi(octet3.c_str())) % 4);
+ this->GenHash(octet2.c_str(),ra2, (key2+atoi(octet1.c_str())) % 4);
+ this->GenHash(octet3.c_str(),ra3, (key3+atoi(octet4.c_str())) % 4);
+ this->GenHash(octet4.c_str(),ra4, (key4+atoi(octet2.c_str())) % 4);
ServerInstance->Log(DEBUG,"ra1=%s, ra2=%s, ra3=%s, ra4=%s", ra1, ra2, ra3, ra4);
/* This is safe as we know the length generated by our genhash is always 16 */
ra1[8] = ra2[8] = ra3[8] = ra4[8] = 0;