aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 64ea157..fa50bdc 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -116,6 +116,7 @@ namespace OpenSim
116 } 116 }
117 117
118 PrintFileToConsole("startuplogo.txt"); 118 PrintFileToConsole("startuplogo.txt");
119 RegisterCmd("echoTest", RunEchoTest, "this echos your command args to see how they are parsed");
119 } 120 }
120 121
121 protected ConsoleBase CreateConsole() 122 protected ConsoleBase CreateConsole()
@@ -133,6 +134,14 @@ namespace OpenSim
133 134
134 #region Console Commands 135 #region Console Commands
135 136
137 private void RunEchoTest(string[] cmdparams)
138 {
139 for (int i = 0; i < cmdparams.Length; i++)
140 {
141 m_log.Info("[EchoTest]: <arg" + i + ">"+cmdparams[i]+"</arg" + i + ">");
142 }
143 }
144
136 /// <summary> 145 /// <summary>
137 /// 146 ///
138 /// </summary> 147 /// </summary>
@@ -801,7 +810,7 @@ namespace OpenSim
801 { 810 {
802 cmdParams = cmdParams.Substring(matchText.Length); 811 cmdParams = cmdParams.Substring(matchText.Length);
803 } 812 }
804 m_commandDelegate(cmdParams.Split(new char[] { ' ' })); 813 m_commandDelegate(cmdParams.Trim().Split(new char[] { ' ' }));
805 } 814 }
806 815
807 /// <summary> 816 /// <summary>