From 0cb6065efddab6726fe778303802850ba5de08ee Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 19 Mar 2007 22:50:54 +0000 Subject: plugins: only show number of ignored and/or failed plugins only the first time a user asks for help --- lib/rbot/plugins.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/rbot/plugins.rb') diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index cc4b5372..7667ff84 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -277,6 +277,7 @@ module Plugins @botmodules[:Plugin].clear @names_hash.clear @commandmappers.clear + @failures_shown = false end # Associate with bot _bot_ @@ -489,15 +490,16 @@ module Plugins list << "no plugins active" end # Ignored plugins next - unless @ignored.empty? + unless @ignored.empty? or @failures_shown list << "; #{Underline}#{@ignored.length} plugin#{'s' if @ignored.length > 1} ignored#{Underline}" list << ": use #{Bold}help ignored plugins#{Bold} to see why" unless short end # Failed plugins next - unless @failed.empty? + unless @failed.empty? or @failures_shown list << "; #{Reverse}#{@failed.length} plugin#{'s' if @failed.length > 1} failed to load#{Reverse}" list << ": use #{Bold}help failed plugins#{Bold} to see why" unless short end + @failures_shown = true list end -- cgit v1.2.3