From 34d9a2a6d9ab4356ec77257fb0e803f2dda76ff1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 18 Aug 2014 14:57:12 +0000 Subject: [PATCH] Appropriately wildcard /gateway/ hostmask bans --- PBot/AntiFlood.pm | 2 ++ PBot/VERSION.pm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index e1705eec..f78e5f15 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -490,6 +490,8 @@ sub address_to_mask { } } elsif($address =~ m/[^.]+\.([^.]+\.[^.]+)$/) { $banmask = "*.$1"; + } elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) { + $banmask = "gateway/$1/$2/*"; } else { $banmask = $address; } diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 30b63caf..f81ac083 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,8 +13,8 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 777, - BUILD_DATE => "2014-08-13", + BUILD_REVISION => 778, + BUILD_DATE => "2014-08-18", }; 1;