mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Add whitelist to blacklist check
This commit is contained in:
parent
01eb05a05e
commit
8ac4a5999d
@ -663,6 +663,11 @@ sub check_bans {
|
|||||||
|
|
||||||
$self->{pbot}->{logger}->log("anti-flood: [check-bans] checking blacklist for $alias in channel $channel\n") if $debug_checkban >= 5;
|
$self->{pbot}->{logger}->log("anti-flood: [check-bans] checking blacklist for $alias in channel $channel\n") if $debug_checkban >= 5;
|
||||||
if ($self->{pbot}->{blacklist}->check_blacklist($alias, $channel)) {
|
if ($self->{pbot}->{blacklist}->check_blacklist($alias, $channel)) {
|
||||||
|
if($self->ban_whitelisted($channel, $alias, $mask)) {
|
||||||
|
$self->{pbot}->{logger}->log("anti-flood: [check-bans] $mask [$alias] evaded blacklist in $channel, but allowed through whitelist\n");
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
my $baninfo = {};
|
my $baninfo = {};
|
||||||
$baninfo->{banmask} = $alias;
|
$baninfo->{banmask} = $alias;
|
||||||
$baninfo->{channel} = $channel;
|
$baninfo->{channel} = $channel;
|
||||||
|
Loading…
Reference in New Issue
Block a user