1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 18:45:42 -04:00

Update for 5.26 changes properly, also allow more plugin children at the start

This commit is contained in:
Ryan Voots 2018-09-13 14:28:13 -04:00
parent 1e5af45c57
commit 1e9e1fbc17
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ sub parse_main_conf {
} }
my %conf_defaults = ( my %conf_defaults = (
start_plugin_children => 8, start_plugin_children => 20,
max_plugin_children => 20, max_plugin_children => 20,
child_handle_count => 20, child_handle_count => 20,
http_plugin_port => 10080, http_plugin_port => 10080,

View file

@ -146,7 +146,7 @@ sub _load_plugins {
local $@; local $@;
local *DATA; # Prevent previous file's __DATA__ local *DATA; # Prevent previous file's __DATA__
# sections being read for this new file. # 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 $@ ) { if( not $plugin_return or $@ ) {
error "Failed to load plugin: $plugin_dir/$file $@\n"; error "Failed to load plugin: $plugin_dir/$file $@\n";
next; next;