Fix new command console code to match the output of the original while keeping

the new features
avinationmerge
Melanie 2012-11-23 03:20:15 +01:00
parent 442896cb1d
commit 6581097001
1 changed files with 5 additions and 2 deletions

View File

@ -144,8 +144,11 @@ namespace OpenSim.Framework.Console
{ {
foreach (List<CommandInfo> commands in m_modulesCommands.Values) foreach (List<CommandInfo> commands in m_modulesCommands.Values)
{ {
var ourHelpText = commands.ConvertAll(c => string.Format("{0} - {1}", c.help_text, c.long_help)); foreach (CommandInfo c in commands)
help.AddRange(ourHelpText); {
if (c.long_help != String.Empty)
help.Add(string.Format("{0} - {1}", c.help_text, c.long_help));
}
} }
} }