From d4ef91d819164d3a46dc2ce9e4a7ce14b6f5b043 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 24 Apr 2008 00:29:28 +0200 Subject: config core botmodule: only show possible keys summary when more than one key was found --- lib/rbot/core/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbot/core/config.rb b/lib/rbot/core/config.rb index 439d7c51..79b711f3 100644 --- a/lib/rbot/core/config.rb +++ b/lib/rbot/core/config.rb @@ -77,7 +77,7 @@ class ConfigModule < CoreBotModule if cfs.empty? m.reply _("no config key found matching %{r}") % { :r => params[:rx].to_s} else - m.reply _("possible keys: %{kl}") % { :kl => cfs.map { |c| c.first}.join(', ') } + m.reply _("possible keys: %{kl}") % { :kl => cfs.map { |c| c.first}.join(', ') } if cfs.length > 1 m.reply cfs.map { |c| c.join(': ') }.join("\n") end end -- cgit v1.2.3