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 Help0.6.0-stable
parent
6711adb8b1
commit
b6667e7224
|
@ -116,6 +116,7 @@ namespace OpenSim
|
|||
}
|
||||
|
||||
PrintFileToConsole("startuplogo.txt");
|
||||
RegisterCmd("echoTest", RunEchoTest, "this echos your command args to see how they are parsed");
|
||||
}
|
||||
|
||||
protected ConsoleBase CreateConsole()
|
||||
|
@ -133,6 +134,14 @@ namespace OpenSim
|
|||
|
||||
#region Console Commands
|
||||
|
||||
private void RunEchoTest(string[] cmdparams)
|
||||
{
|
||||
for (int i = 0; i < cmdparams.Length; i++)
|
||||
{
|
||||
m_log.Info("[EchoTest]: <arg" + i + ">"+cmdparams[i]+"</arg" + i + ">");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
@ -801,7 +810,7 @@ namespace OpenSim
|
|||
{
|
||||
cmdParams = cmdParams.Substring(matchText.Length);
|
||||
}
|
||||
m_commandDelegate(cmdParams.Split(new char[] { ' ' }));
|
||||
m_commandDelegate(cmdParams.Trim().Split(new char[] { ' ' }));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue