3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

Appropriately wildcard /gateway/ hostmask bans

This commit is contained in:
Pragmatic Software 2014-08-18 14:57:12 +00:00
parent 749fda0ff3
commit 34d9a2a6d9
2 changed files with 4 additions and 2 deletions

View File

@ -490,6 +490,8 @@ sub address_to_mask {
}
} elsif($address =~ m/[^.]+\.([^.]+\.[^.]+)$/) {
$banmask = "*.$1";
} elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) {
$banmask = "gateway/$1/$2/*";
} else {
$banmask = $address;
}

View File

@ -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;