3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

PBot: load registry before autoloading plugins

This commit is contained in:
Pragmatic Software 2019-05-08 21:07:57 -07:00
parent 207fcba402
commit 69ea38bec6

View File

@ -143,6 +143,9 @@ sub initialize {
$self->{registry}->load;
}
# load available plugins
$self->{plugins}->autoload(%conf);
# create implicit bot-admin account for bot
my $botnick = $self->{registry}->get_value('irc', 'botnick');
$self->{admins}->add_admin($botnick, '.*', "$botnick!stdin\@localhost", 90, 'admin', 1);