@registry.flush
end
+
# Method called to cleanup before the plugin is unloaded. If you overload
# this method to handle additional cleanup tasks, remember to call super()
# so that the default cleanup actions are taken care of as well.
([str, err.inspect] + err.backtrace).join("\n")
end
+ def get_plugin(name)
+ plugins.find { |plugin| plugin.name == name }
+ end
+
# This method is the one that actually loads a module from the
# file _fname_
#
return newerr
end
end
- private :load_botmodule_file
# add one or more directories to the list of directories to
# load core modules from
sort_modules unless @sorted_modules
opts = {}
- opts.merge(args.pop) if args.last.class == Hash
+ opts.merge!(args.pop) if args.last.class == Hash
m = args.first
if BasicUserMessage === m