mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
PBot: missing exit on fatal error
This commit is contained in:
parent
9839cb814e
commit
7a326ba7fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user