Plugins: minor style clean-up

This commit is contained in:
Pragmatic Software 2020-02-09 13:10:34 -08:00
parent 6d6689b06e
commit f32dec200b
1 changed files with 1 additions and 2 deletions

View File

@ -81,8 +81,7 @@ sub load {
$self->{pbot}->{logger}->log("Loading $plugin\n");
my $class = "Plugins::$plugin";
my $mod = $class->new(pbot => $self->{pbot}, %conf);
$self->{plugins}->{$plugin} = $mod;
$self->{plugins}->{$plugin} = $class->new(pbot => $self->{pbot}, %conf);
$self->{pbot}->{refresher}->{refresher}->update_cache("$path/$plugin.pm");
return 1;
};