3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

PBot: missing exit on fatal error

This commit is contained in:
Pragmatic Software 2020-01-25 19:55:08 -08:00
parent 9839cb814e
commit 7a326ba7fe

View File

@ -174,6 +174,7 @@ sub initialize {
if (not defined $section or not defined $key) {
$self->{logger}->log("Fatal error: bad argument `$arg`; registry entries must be in the form of section.key (e.g.: irc.botnick)\n");
exit;
}
$section =~ s/^-//; # remove a leading - to allow arguments like -irc.botnick due to habitual use of -args