mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
AntiFlood: $conf{whitelist_file} no longer used; use only registry
This commit is contained in:
parent
50f9bf4f9d
commit
0b879cd987
@ -55,7 +55,7 @@ sub initialize {
|
||||
$self->{whois_pending} = {}; # prevents multiple whois for nick joining multiple channels at once
|
||||
$self->{changinghost} = {}; # tracks nicks changing hosts/identifying to strongly link them
|
||||
|
||||
my $filename = delete $conf{whitelist_file} // $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/whitelist';
|
||||
my $filename = $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/whitelist';
|
||||
$self->{whitelist} = PBot::DualIndexHashObject->new(name => 'Whitelist', filename => $filename, pbot => $self->{pbot});
|
||||
$self->{whitelist}->load;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user