aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console/CommandConsole.cs
diff options
context:
space:
mode:
authorMelanie2012-11-23 03:20:15 +0100
committerMelanie2012-11-23 03:20:15 +0100
commit658109700125f74b72dc1d1990e5713f06ee538e (patch)
treea192de729593d647554d83e0f9ca0726372bb244 /OpenSim/Framework/Console/CommandConsole.cs
parentRemove duplicate registration of the help topics for the module commander (diff)
downloadopensim-SC-658109700125f74b72dc1d1990e5713f06ee538e.zip
opensim-SC-658109700125f74b72dc1d1990e5713f06ee538e.tar.gz
opensim-SC-658109700125f74b72dc1d1990e5713f06ee538e.tar.bz2
opensim-SC-658109700125f74b72dc1d1990e5713f06ee538e.tar.xz
Fix new command console code to match the output of the original while keeping
the new features
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Console/CommandConsole.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs
index 106b406..d703d78 100644
--- a/OpenSim/Framework/Console/CommandConsole.cs
+++ b/OpenSim/Framework/Console/CommandConsole.cs
@@ -144,8 +144,11 @@ namespace OpenSim.Framework.Console
144 { 144 {
145 foreach (List<CommandInfo> commands in m_modulesCommands.Values) 145 foreach (List<CommandInfo> commands in m_modulesCommands.Values)
146 { 146 {
147 var ourHelpText = commands.ConvertAll(c => string.Format("{0} - {1}", c.help_text, c.long_help)); 147 foreach (CommandInfo c in commands)
148 help.AddRange(ourHelpText); 148 {
149 if (c.long_help != String.Empty)
150 help.Add(string.Format("{0} - {1}", c.help_text, c.long_help));
151 }
149 } 152 }
150 } 153 }
151 154