diff options
author | Charles Krinke | 2008-06-18 21:07:40 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-18 21:07:40 +0000 |
commit | b6667e72243673b47e77a48a1e040d9ccf0ba2b0 (patch) | |
tree | 5f65fd3cea262d1bb51e73989b9629b821c6677d /OpenSim | |
parent | add inventory store migration (diff) | |
download | opensim-SC-b6667e72243673b47e77a48a1e040d9ccf0ba2b0.zip opensim-SC-b6667e72243673b47e77a48a1e040d9ccf0ba2b0.tar.gz opensim-SC-b6667e72243673b47e77a48a1e040d9ccf0ba2b0.tar.bz2 opensim-SC-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
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 11 |
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> |