aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authormingchen2007-08-15 19:08:27 +0000
committermingchen2007-08-15 19:08:27 +0000
commitae20503dae765b850d6acf6e30220b9688f30cac (patch)
treee1bb93fc5cc6b85ca7756687a9033c5cb8a7f862 /OpenSim/Framework
parentMore work on inventory, can now create other inventory types, like Clothes an... (diff)
downloadopensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.zip
opensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.tar.gz
opensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.tar.bz2
opensim-SC_OLD-ae20503dae765b850d6acf6e30220b9688f30cac.tar.xz
*Added the ability to run commands after all regions have started up
*By default, it is set to startup_commands.txt. Simply add a list of commands separated by a new line to be run or change the file by changing the path of a startup commands file in OpenSim.ini
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index 2b831fe..5f16303 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -409,9 +409,15 @@ namespace OpenSim.Framework.Console
409 409
410 public void MainLogPrompt() 410 public void MainLogPrompt()
411 { 411 {
412 string[] tempstrarray; 412
413 string tempstr = this.CmdPrompt(this.componentname + "# "); 413 string tempstr = this.CmdPrompt(this.componentname + "# ");
414 tempstrarray = tempstr.Split(' '); 414 MainLogRunCommand(tempstr);
415 }
416
417 public void MainLogRunCommand(string command)
418 {
419 string[] tempstrarray;
420 tempstrarray = command.Split(' ');
415 string cmd = tempstrarray[0]; 421 string cmd = tempstrarray[0];
416 Array.Reverse(tempstrarray); 422 Array.Reverse(tempstrarray);
417 Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1); 423 Array.Resize<string>(ref tempstrarray, tempstrarray.Length - 1);