From 346b8670f3470166f2d33efade6570b7578a9a48 Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Thu, 31 Jul 2008 00:26:50 +0400 Subject: + core/config: sort config search result --- lib/rbot/core/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') diff --git a/lib/rbot/core/config.rb b/lib/rbot/core/config.rb index 1459d557..d887855d 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(', ') } if cfs.length > 1 + m.reply _("possible keys: %{kl}") % { :kl => cfs.map { |c| c.first}.sort.join(', ') } if cfs.length > 1 m.reply cfs.map { |c| c.join(': ') }.join("\n") end end -- cgit v1.2.3