diff options
author | dmitry kim <jason@nichego.net> | 2008-07-31 00:26:50 +0400 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-07-31 00:26:50 +0400 |
commit | 346b8670f3470166f2d33efade6570b7578a9a48 (patch) | |
tree | 2df0e68e6fd6cdab0849798adcbe61a19b056476 /lib/rbot | |
parent | 6fb82f2c8ae244cb098f2eae78a7d3143f3e2069 (diff) |
+ core/config: sort config search result
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 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 |