From 1e9e1fbc170cd401604d072218b151b4366be69a Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Thu, 13 Sep 2018 14:28:13 -0400 Subject: [PATCH] Update for 5.26 changes properly, also allow more plugin children at the start --- lib/Bot/BB3.pm | 2 +- lib/Bot/BB3/PluginManager.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Bot/BB3.pm b/lib/Bot/BB3.pm index ae07fae..c84c020 100644 --- a/lib/Bot/BB3.pm +++ b/lib/Bot/BB3.pm @@ -166,7 +166,7 @@ sub parse_main_conf { } my %conf_defaults = ( - start_plugin_children => 8, + start_plugin_children => 20, max_plugin_children => 20, child_handle_count => 20, http_plugin_port => 10080, diff --git a/lib/Bot/BB3/PluginManager.pm b/lib/Bot/BB3/PluginManager.pm index f4191f4..2800ef6 100644 --- a/lib/Bot/BB3/PluginManager.pm +++ b/lib/Bot/BB3/PluginManager.pm @@ -146,7 +146,7 @@ sub _load_plugins { local $@; local *DATA; # Prevent previous file's __DATA__ # sections being read for this new file. - my $plugin_return = do "$plugin_dir/$file"; + my $plugin_return = do "./$plugin_dir/$file"; if( not $plugin_return or $@ ) { error "Failed to load plugin: $plugin_dir/$file $@\n"; next;