]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Spamcheck.pm
No ext_urls
[public-inbox.git] / lib / PublicInbox / Spamcheck.pm
index ffebb3cf923fda19f322cdc76e7253fc41b76130..d8fa80c84fdd8873e8b9c8f617773f99e199238f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2018-2021 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';