mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
AntiFlood: check_ban(): correct order of ban_user_timed() arguments
This commit is contained in:
parent
ca228b9e06
commit
b5ec951df1
@ -918,11 +918,12 @@ sub check_bans {
|
|||||||
$self->{pbot}->{chanops}->add_op_command($baninfo->{channel}, "kick $baninfo->{channel} $bannick Evaded $baninfo->{mask} set by $owner");
|
$self->{pbot}->{chanops}->add_op_command($baninfo->{channel}, "kick $baninfo->{channel} $bannick Evaded $baninfo->{mask} set by $owner");
|
||||||
}
|
}
|
||||||
$self->{pbot}->{banlist}->ban_user_timed(
|
$self->{pbot}->{banlist}->ban_user_timed(
|
||||||
$banmask, $baninfo->{channel},
|
$baninfo->{channel},
|
||||||
'b',
|
'b',
|
||||||
|
$banmask,
|
||||||
60 * 60 * 24 * 14,
|
60 * 60 * 24 * 14,
|
||||||
$self->{pbot}->{registry}->get_value('irc', 'botnick'),
|
$self->{pbot}->{registry}->get_value('irc', 'botnick'),
|
||||||
'ban evasion',
|
$baninfo->{type} eq 'blacklist' ? 'blacklisted' : 'ban evasion',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
my $channel_data = $self->{pbot}->{messagehistory}->{database}->get_channel_data($message_account, $channel, 'validated');
|
my $channel_data = $self->{pbot}->{messagehistory}->{database}->get_channel_data($message_account, $channel, 'validated');
|
||||||
|
Loading…
Reference in New Issue
Block a user