Subject: | Issue loading Config for Plugin Modules |
Individual config keys are not being sent to the Plugins that need to handle them via the ->set method.
Instead all config is parsed into the Param attribute on the plugin object in question.
-------------------------------------------------------------
my $m = "Bot::BasicBot::Pluggable::Module::$module"->new(
Bot => $self,
- Param => $module_config
+ Param => \@_,
);
die "->new didn't return an object" unless ( $m and ref($m) );
die ref($m) . " isn't a $module" unless ref($m) =~ /\Q$module/;
+for my $param (keys %$module_config){
+ $m->set($param => $module_config->{$param});
+}