Skip Menu |

This queue is for tickets about the Bot-BasicBot-Pluggable-WithConfig CPAN distribution.

Report information
The Basics
Id: 93605
Status: new
Priority: 0/
Queue: Bot-BasicBot-Pluggable-WithConfig

People
Owner: Nobody in particular
Requestors: MRF [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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}); +}