Further work on config module

This commit is contained in:
Duncan Ferguson 2011-07-11 21:00:43 +01:00
parent 3fedc40eaf
commit 5fb98fc796
4 changed files with 47 additions and 5 deletions

View file

@ -141,13 +141,13 @@ sub parse_config_file {
my ( $key, $value ) = ( $1, $2 );
if ( defined $key && defined $value ) {
$read_config{$key} = $value;
logmsg( 3, "$key=$value" );
$self->debug( 3, "$key=$value" );
}
}
close(CFG);
# tidy up entries, just in case
$read_config{terminal_font} =~ s/['"]//g;
$read_config{terminal_font} =~ s/['"]//g if($read_config{terminal_font});
$self->validate_args(%read_config);
}