diff options
author | Peter Palfrader <peter@palfrader.org> | 2002-10-25 10:46:52 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2002-10-25 10:46:52 +0000 |
commit | 7a9b25a7a1202a3da71c22f34cd2f1efce64a586 (patch) | |
tree | b63697824091916544f976ff9c9d790796302b2d /Echolot/Config.pm | |
parent | ca2d99975ee78decc7e92e54f96cf1e8bf03aac4 (diff) |
Only take default parameters if they are not set in pingd.conf (as opposed to set to undef)
Diffstat (limited to 'Echolot/Config.pm')
-rw-r--r-- | Echolot/Config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Echolot/Config.pm b/Echolot/Config.pm index 2e386b0..dcb48f4 100644 --- a/Echolot/Config.pm +++ b/Echolot/Config.pm @@ -1,7 +1,7 @@ package Echolot::Config; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: Config.pm,v 1.41 2002/09/21 03:24:41 weasel Exp $ +# $Id: Config.pm,v 1.42 2002/10/25 10:46:52 weasel Exp $ # =pod @@ -225,7 +225,7 @@ sub init($) { } for my $key (keys %$DEFAULT) { - $CONFIG->{$key} = $DEFAULT->{$key} unless defined $CONFIG->{$key}; + $CONFIG->{$key} = $DEFAULT->{$key} unless exists $CONFIG->{$key}; }; $CONFIG->{'homedir'} = $params->{'basedir'} unless (defined $CONFIG->{'homedir'}); $CONFIG->{'verbose'} = $params->{'verbose'} if ($params->{'verbose'}); |