From 7e2affb6913334f616977776d2e0d3e859420bd4 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 24 Apr 2007 23:42:08 +0000 Subject: 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 --- src/modules/m_cloaking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3