Subject: | infobot doesn't load modules properly |
Documentation states:
[Foo]
somevar = a value
The plugin Bot::BasicBot::Pluggable::Module::Foo will have the variable
somevar set a value.
But this is broken, and the following patch fixes it (and uses ->load to
load a module):
--- /usr/local/bin/infobot 2011-06-11 19:36:51.000000000 +0000
+++ /home/bot/InfoBot/infobot 2011-06-11 23:32:40.000000000 +0000
@@ -200,8 +200,8 @@
# Then set the keys the plugins
foreach my $key (keys %conf) {
next if $key eq 'store';
- next unless ref $key eq 'HASH';
- my $mod = $bot->module($key);
+ next unless ref $conf{$key} eq 'HASH';
+ my $mod = $bot->load($key);
unless (defined $mod) {