From 658109700125f74b72dc1d1990e5713f06ee538e Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 23 Nov 2012 03:20:15 +0100 Subject: [PATCH] Fix new command console code to match the output of the original while keeping the new features --- OpenSim/Framework/Console/CommandConsole.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs index 106b4063a5..d703d78b55 100644 --- a/OpenSim/Framework/Console/CommandConsole.cs +++ b/OpenSim/Framework/Console/CommandConsole.cs @@ -144,8 +144,11 @@ namespace OpenSim.Framework.Console { foreach (List commands in m_modulesCommands.Values) { - var ourHelpText = commands.ConvertAll(c => string.Format("{0} - {1}", c.help_text, c.long_help)); - help.AddRange(ourHelpText); + foreach (CommandInfo c in commands) + { + if (c.long_help != String.Empty) + help.Add(string.Format("{0} - {1}", c.help_text, c.long_help)); + } } }