From 2e9f15b7e25d88eb19d518c418ccd7c9d453025b Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 23 Mar 2015 04:18:33 -0700 Subject: [PATCH] Support IPv6 banmasks --- PBot/AntiFlood.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index 291e3908..caa54f2b 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -490,6 +490,8 @@ sub address_to_mask { $banmask = "*.$1"; } elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) { $banmask = "gateway/$1/$2/*"; + } elsif($address =~ m/^([^:]+):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)$/) { + $banmask = "$1:$2:*"; } else { $banmask = $address; }