mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 04:02:37 +01:00
Plugins: minor style clean-up
This commit is contained in:
parent
6d6689b06e
commit
f32dec200b
@ -81,8 +81,7 @@ sub load {
|
|||||||
|
|
||||||
$self->{pbot}->{logger}->log("Loading $plugin\n");
|
$self->{pbot}->{logger}->log("Loading $plugin\n");
|
||||||
my $class = "Plugins::$plugin";
|
my $class = "Plugins::$plugin";
|
||||||
my $mod = $class->new(pbot => $self->{pbot}, %conf);
|
$self->{plugins}->{$plugin} = $class->new(pbot => $self->{pbot}, %conf);
|
||||||
$self->{plugins}->{$plugin} = $mod;
|
|
||||||
$self->{pbot}->{refresher}->{refresher}->update_cache("$path/$plugin.pm");
|
$self->{pbot}->{refresher}->{refresher}->update_cache("$path/$plugin.pm");
|
||||||
return 1;
|
return 1;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user