From f32dec200b9d439987177b83e370ed87f44f87d2 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 9 Feb 2020 13:10:34 -0800 Subject: [PATCH] Plugins: minor style clean-up --- PBot/Plugins.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PBot/Plugins.pm b/PBot/Plugins.pm index c8ec4d31..38ab43af 100644 --- a/PBot/Plugins.pm +++ b/PBot/Plugins.pm @@ -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; };