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:
parent
207fcba402
commit
69ea38bec6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user