mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user