From 7f561654757f8f6c8b05a0ed03fe60da29c38965 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Sun, 22 Jul 2007 20:57:29 +0000 Subject: fixed a copy-paste error causing incorrect count of failed plugins to be displayed --- lib/rbot/plugins.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 0f9778f7..bc5211b5 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -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 -- cgit v1.2.3