From b258f94718ade2c5df38aa5c377db459c7f01fbc Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Thu, 17 Oct 2013 23:56:57 +0200 Subject: [PATCH] fixed badly computed large ipv6 --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index e3e979c..d9a13d3 100644 --- a/plugin.py +++ b/plugin.py @@ -207,7 +207,7 @@ def getBestPattern (n): if host.startswith('gateway/web/freenode/ip.') or host.startswith('gateway/tor-sasl/') or host.startswith('unaffiliated/'): ident = '*' if n.ip != None: - if n.ip.find('::') > 4: + if len(n.ip.split('::')) > 4: # large ipv6 a = n.ip.split(':') m = a[0]+':'+a[1]+':'+a[2]+':'+a[3]+':*'