]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Spamcheck.pm
rename {pi_config} fields to {pi_cfg}
[public-inbox.git] / lib / PublicInbox / Spamcheck.pm
index 54d54cbcf22989f14da3bda99b0cde924bf865b9..218fcc013349b86cd88cd0db287c55b920ee2c26 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018 all contributors <meta@public-inbox.org>
+# Copyright (C) 2018-2020 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # Spamchecking used by -watch and -mda tools
@@ -7,8 +7,8 @@ use strict;
 use warnings;
 
 sub get {
-       my ($config, $key, $default) = @_;
-       my $spamcheck = $config->{$key};
+       my ($cfg, $key, $default) = @_;
+       my $spamcheck = $cfg->{$key};
        $spamcheck = $default unless $spamcheck;
 
        return if !$spamcheck || $spamcheck eq 'none';