summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-24 23:42:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-24 23:42:08 +0000
commit7e2affb6913334f616977776d2e0d3e859420bd4 (patch)
tree361077fe12cd0575f8261ae7fd5fe7487ad133a5 /src/modules
parent94994e532bbd664860f116430706b16b755279f1 (diff)
Shorten the length of ipv6 cloaks so that a character isnt lost (6 segments plus :'s means > 63), its now 5 segments plus 5 colons equalling 55.
QA Please test if possible. (connect unresolving ipv6's to a network and check they display ok on join and quit and not like this:) seeboo ( seeboo@128D1B1808:B184FB403B:282A02A3AB:6949B425CE:D744031274:2587FA5 ) has quit IRC ( Client exited ) seeboo ( seeboo@128D1B1808:B184FB403B:282A02A3AB:6949B425CE:D744031274:2587FA5C ) has joined git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6832 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cloaking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index f9b6734ce..19aac36aa 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -224,7 +224,7 @@ class CloakUser : public ModeHandler
for (const char* input = ip; *input; input++)
{
item += *input;
- if (item.length() > 5)
+ if (item.length() > 4)
{
/* Send the Hash module a different hex table for each octet group's Hash sum */
HashHexRequest(Sender, HashProvider, xtab[(key1+rounds) % 4]).Send();