mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-18 14:30:40 +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;
|
$self->{registry}->load;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# load available plugins
|
||||||
|
$self->{plugins}->autoload(%conf);
|
||||||
|
|
||||||
# create implicit bot-admin account for bot
|
# create implicit bot-admin account for bot
|
||||||
my $botnick = $self->{registry}->get_value('irc', 'botnick');
|
my $botnick = $self->{registry}->get_value('irc', 'botnick');
|
||||||
$self->{admins}->add_admin($botnick, '.*', "$botnick!stdin\@localhost", 90, 'admin', 1);
|
$self->{admins}->add_admin($botnick, '.*', "$botnick!stdin\@localhost", 90, 'admin', 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user