Skip Menu |

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

Report information
The Basics
Id: 7740
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Bot-BasicBot-Pluggable

People
Owner: MDOM [...] cpan.org
Requestors: aripollak [...] gmail.com
Cc:
AdminCc:

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



Subject: modules aren't loaded from "./Modules/" as documented
The Bot::BasicBot::Pluggable documentation says the following about the load() method: Load a module for the bot by name, from, by preference './Modules/$module.pm', but will fall back to Bot::BasicBot::Pluggable::Module::$module if this isn't available. However, ./Modules/ doesn't seem to be searched at all, and the actual function doesn't seem to try to do so. So either the documentation should be updated to remove this functionality, or the functionality should actually be added.
Hello! Show quoted text
> The Bot::BasicBot::Pluggable documentation says the following about > the load() method: > Load a module for the bot by name, from, by preference > './Modules/$module.pm', > but will fall back to Bot::BasicBot::Pluggable::Module::$module if > this > isn't available. > > However, ./Modules/ doesn't seem to be searched at all, and the actual > function doesn't seem to try to do so. So either the documentation > should be updated to remove this functionality, or the > functionality should actually be added.
These error seems to be fixed in one of the earlier releases, but i can't find the exact version. The new behaviour is to try loading the modules from the current directory first, then ./modules and after that @INC. Actually there's still a documentation bug as loading from the current directory is not mentioned in pod, but that is fixed in git and will be part of the next release. Thanks for reporting this bug! Best wishes, Mario