plugins/manager.rb in cogbot-0.1.0 vs plugins/manager.rb in cogbot-0.1.1
- old
+ new
@@ -21,10 +21,10 @@
p plugin
p mapping
file_name = "#{ROOT_DIR}/plugins/#{mapping.downcase}.rb"
unless File.exist?(file_name)
- m.reply "Could not load #{plugin} because #{file_name} does not exist."
+ m.reply "Could not load #{plugin} because #{File.basename(file_name)} does not exist."
return
end
begin
load(file_name)