From 0b879cd9879afc302f94e7f7cd1279566b0b1a9d Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 24 Dec 2019 14:28:57 -0800 Subject: [PATCH] AntiFlood: $conf{whitelist_file} no longer used; use only registry --- PBot/AntiFlood.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/AntiFlood.pm b/PBot/AntiFlood.pm index b080d1bd..4f975958 100644 --- a/PBot/AntiFlood.pm +++ b/PBot/AntiFlood.pm @@ -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;