mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Appropriately wildcard /gateway/ hostmask bans
This commit is contained in:
parent
749fda0ff3
commit
34d9a2a6d9
@ -490,6 +490,8 @@ sub address_to_mask {
|
||||
}
|
||||
} elsif($address =~ m/[^.]+\.([^.]+\.[^.]+)$/) {
|
||||
$banmask = "*.$1";
|
||||
} elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) {
|
||||
$banmask = "gateway/$1/$2/*";
|
||||
} else {
|
||||
$banmask = $address;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user