Added die to config.

This commit is contained in:
Elijah Perrault committed 2011-01-29 16:37:18 -07:00
1 parent b8c0edadf1
commit bc65c8c480
2 files changed
+12

No files matched your search

+8
View File
@@ -111,6 +111,14 @@ our $CONF = Parser::Config->new("auto.conf") or err(1, "Failed to parse configur
our %SETTINGS = $CONF->parse or err(1, "Failed to parse configuration file!", 1);
println " Success";
if (conf_get("die")) {
if ((conf_get("die"))[0][0] == 1) {
println "!!! You didn't read the whole config.";
println "!!! Insert new user then try again.";
exit;
}
}
# Check for required configuration values.
my @REQCVALS = qw(locale expire_logs server fantasy_pf);
foreach my $REQCVAL (@REQCVALS) {
+4
View File
@@ -73,3 +73,7 @@ fantasy_pf "!";
# Module autoload.
module "HelloChan";
# Lets see if you read the config.
# Change this to 0 or remove it.
die 1;