]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/plugins.rb
* (timer) stop the bot timer for shutdown / rescan
[user/henk/code/ruby/rbot.git] / lib / rbot / plugins.rb
index bc5211b51474b528af089c1b114e2ff5a5ada953..99ae31b6f03db8ddd2d7ed32493879ca3ec409cb 100644 (file)
@@ -366,7 +366,7 @@ module Plugins
         return :loaded
       rescue Exception => err
         # rescue TimeoutError, StandardError, NameError, LoadError, SyntaxError => err
-        warning report_error("#{desc}#{fname} load failed", err)
+        error report_error("#{desc}#{fname} load failed", err)
         bt = err.backtrace.select { |line|
           line.match(/^(\(eval\)|#{fname}):\d+/)
         }
@@ -526,7 +526,7 @@ module Plugins
                        "%{highlight}%{count} plugins failed to load%{highlight}: use %{bold}%{command}%{bold} to see why",
                        @failed.length) %
                     { :count => @failed.length, :highlight => Reverse,
-                      :bold => Bold, :command => "#{Bold}help failed plugins#{Bold}"}
+                      :bold => Bold, :command => "help failed plugins"}
         end
       end
       output.join '; '
@@ -554,7 +554,7 @@ module Plugins
         # debug "Failures: #{@failed.inspect}"
         return _("no plugins failed to load") if @failed.empty?
         return @failed.collect { |p|
-          _('%{highlight}%{plugin}%{highlight} in %{dir}failed with error %{exception}: %{reason}') % {
+          _('%{highlight}%{plugin}%{highlight} in %{dir} failed with error %{exception}: %{reason}') % {
               :highlight => Bold, :plugin => p[:name], :dir => p[:dir],
               :exception => p[:reason].class, :reason => p[:reason],
           } + if $1 && !p[:reason].backtrace.empty?