mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-12 04:52:37 +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/[^.]+\.([^.]+\.[^.]+)$/) {
|
} elsif($address =~ m/[^.]+\.([^.]+\.[^.]+)$/) {
|
||||||
$banmask = "*.$1";
|
$banmask = "*.$1";
|
||||||
|
} elsif($address =~ m{^gateway/([^/]+)/([^/]+)/}) {
|
||||||
|
$banmask = "gateway/$1/$2/*";
|
||||||
} else {
|
} else {
|
||||||
$banmask = $address;
|
$banmask = $address;
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,8 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 777,
|
BUILD_REVISION => 778,
|
||||||
BUILD_DATE => "2014-08-13",
|
BUILD_DATE => "2014-08-18",
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user