mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
PBot: ignore leading hypen on registry command-line arguments too
This commit is contained in:
parent
bd11d501e3
commit
6f9133f982
@ -166,6 +166,8 @@ sub initialize {
|
||||
$self->{logger}->log("Fatal error: bad argument `$arg`; registry entries must be in the form of section.key (e.g.: irc.botnick)\n");
|
||||
}
|
||||
|
||||
$section =~ s/^-//; # remove a leading - to allow arguments like -irc.botnick due to habitual use of -args
|
||||
|
||||
$self->{logger}->log("Overriding $section.$key to $value\n");
|
||||
$self->{registry}->set($section, $key, 'value', $value, 0, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user