]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
fixed a copy-paste error causing incorrect count of failed plugins to be displayed
authorYaohan Chen <yaohan.chen@gmail.com>
Sun, 22 Jul 2007 20:57:29 +0000 (20:57 +0000)
committerYaohan Chen <yaohan.chen@gmail.com>
Sun, 22 Jul 2007 20:57:29 +0000 (20:57 +0000)
lib/rbot/plugins.rb

index 0f9778f7188af88cf1c163f3c7a62cfbd7ff2820..bc5211b51474b528af089c1b114e2ff5a5ada953 100644 (file)
@@ -519,13 +519,13 @@ module Plugins
         if short
           output << n_("%{highlight}%{count} plugin failed to load%{highlight}",
                        "%{highlight}%{count} plugins failed to load%{highlight}",
-                       @ignored.length) %
-                    { :count => @ignored.length, :highlight => Reverse }
+                       @failed.length) %
+                    { :count => @failed.length, :highlight => Reverse }
         else
           output << n_("%{highlight}%{count} plugin failed to load%{highlight}: use %{bold}%{command}%{bold} to see why",
                        "%{highlight}%{count} plugins failed to load%{highlight}: use %{bold}%{command}%{bold} to see why",
-                       @ignored.length) %
-                    { :count => @ignored.length, :highlight => Reverse,
+                       @failed.length) %
+                    { :count => @failed.length, :highlight => Reverse,
                       :bold => Bold, :command => "#{Bold}help failed plugins#{Bold}"}
         end
       end