aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCharles Krinke2008-06-18 21:07:40 +0000
committerCharles Krinke2008-06-18 21:07:40 +0000
commitb6667e72243673b47e77a48a1e040d9ccf0ba2b0 (patch)
tree5f65fd3cea262d1bb51e73989b9629b821c6677d
parentadd inventory store migration (diff)
downloadopensim-SC_OLD-b6667e72243673b47e77a48a1e040d9ccf0ba2b0.zip
opensim-SC_OLD-b6667e72243673b47e77a48a1e040d9ccf0ba2b0.tar.gz
opensim-SC_OLD-b6667e72243673b47e77a48a1e040d9ccf0ba2b0.tar.bz2
opensim-SC_OLD-b6667e72243673b47e77a48a1e040d9ccf0ba2b0.tar.xz
Mantis#1567. Thank you kindly, Dmiles for a patch that addresses:
Add a .Trim() that was forgotten in a previous patch titled: [PATCH] Adds an API for for plugins to create new Console commands and Help
-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>