diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-24 00:29:28 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-24 00:29:28 +0200 |
commit | d4ef91d819164d3a46dc2ce9e4a7ce14b6f5b043 (patch) | |
tree | 6da9a448611c21d2c243198c66d2b0f93501c8c0 /lib/rbot | |
parent | 4a5eafbb067aaee8715a55ac52e292ce22b668c8 (diff) |
config core botmodule: only show possible keys summary when more than one key was found
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |