From d681f88f23e1438d90cee4a557596d4c90cd6f55 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 15 Dec 2019 14:41:25 -0800 Subject: [PATCH] Plugins: fix default loading path --- PBot/Plugins.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/Plugins.pm b/PBot/Plugins.pm index 52467465..b28d3555 100644 --- a/PBot/Plugins.pm +++ b/PBot/Plugins.pm @@ -74,7 +74,7 @@ sub load { return if $self->{pbot}->{registry}->get_value('plugins', 'disabled'); - my $path = $self->{pbot}->{registry}->get_value('plugins', 'path') // 'PBot/Plugins'; + my $path = $self->{pbot}->{registry}->get_value('plugins', 'path') // 'Plugins'; if (not grep { $_ eq $path } @INC) { unshift @INC, $path; @@ -123,7 +123,7 @@ sub unload { $self->{pbot}->{logger}->log("Warning: got error unloading plugin $plugin: $@\n"); } - my $path = $self->{pbot}->{registry}->get_value('plugins', 'path') // 'PBot/Plugins'; + my $path = $self->{pbot}->{registry}->get_value('plugins', 'path') // 'Plugins'; my $class = $path; $class =~ s,[/\\],::,g;