diff --git a/spam/spam-lib.pl b/spam/spam-lib.pl index 052e9e946..68362721b 100755 --- a/spam/spam-lib.pl +++ b/spam/spam-lib.pl @@ -197,7 +197,7 @@ if ($newname =~ s/whitelist/welcomelist/ || # New name exists in config, so use it $name = $newname; } - elsif (!@oldname && &version_atleast("4.0")) { + elsif (!@olduse && &version_atleast("4.0")) { # Neither exists, but use the new name is later versions $name = $newname; }