From 755cb0d571a3fe16f9409af2283fb0f1635b8138 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 21 Dec 2019 19:01:59 -0800 Subject: [PATCH] Plugins: use plugin_dir registry value --- PBot/Plugins.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PBot/Plugins.pm b/PBot/Plugins.pm index 63959b86..a832f98c 100644 --- a/PBot/Plugins.pm +++ b/PBot/Plugins.pm @@ -47,7 +47,7 @@ sub autoload { return if $self->{pbot}->{registry}->get_value('plugins', 'noautoload'); - my $path = $self->{pbot}->{registry}->get_value('plugins', 'path') // 'Plugins'; + my $path = $self->{pbot}->{registry}->get_value('general', 'plugin_dir') // 'Plugins'; $self->{pbot}->{logger}->log("Loading plugins ...\n"); my $plugin_count = 0; @@ -81,7 +81,7 @@ sub load { return if $self->{pbot}->{registry}->get_value('plugins', 'disabled'); - my $path = $self->{pbot}->{registry}->get_value('plugins', 'path') // 'Plugins'; + my $path = $self->{pbot}->{registry}->get_value('general', 'plugin_dir') // 'Plugins'; if (not grep { $_ eq $path } @INC) { unshift @INC, $path; @@ -130,7 +130,7 @@ sub unload { $self->{pbot}->{logger}->log("Warning: got error unloading plugin $plugin: $@\n"); } - my $path = $self->{pbot}->{registry}->get_value('plugins', 'path') // 'Plugins'; + my $path = $self->{pbot}->{registry}->get_value('general', 'plugin_dir') // 'Plugins'; my $class = $path; $class =~ s,[/\\],::,g;