aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorMW2007-08-24 16:30:27 +0000
committerMW2007-08-24 16:30:27 +0000
commit8b4955f6c1e366f9509b65159cc8c08afa5d237b (patch)
tree12cfa13737e52d2493e5fa908681488f1aab858d /OpenSim/Region/Application
parentSmall bit of refactoring to the startup command script code (moved it into a ... (diff)
downloadopensim-SC-8b4955f6c1e366f9509b65159cc8c08afa5d237b.zip
opensim-SC-8b4955f6c1e366f9509b65159cc8c08afa5d237b.tar.gz
opensim-SC-8b4955f6c1e366f9509b65159cc8c08afa5d237b.tar.bz2
opensim-SC-8b4955f6c1e366f9509b65159cc8c08afa5d237b.tar.xz
Hopefully fixed the issue of inventory not working for the master account. (Note you will need to delete userprofile.yap for this to take effect.)
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs48
1 files changed, 26 insertions, 22 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 07ab34d..ddea383 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -213,28 +213,6 @@ namespace OpenSim
213 } 213 }
214 } 214 }
215 215
216 private void RunCommandScript(string fileName)
217 {
218 MainLog.Instance.Verbose("Running command script (" + fileName + ")");
219 if (File.Exists(fileName))
220 {
221 StreamReader readFile = File.OpenText(fileName);
222 string currentCommand = "";
223 while ((currentCommand = readFile.ReadLine()) != null)
224 {
225 if (currentCommand != "")
226 {
227 MainLog.Instance.Verbose("Running '" + currentCommand + "'");
228 MainLog.Instance.MainLogRunCommand(currentCommand);
229 }
230 }
231 }
232 else
233 {
234 MainLog.Instance.Error("Command script missing. Can not run commands");
235 }
236 }
237
238 private static void CreateDefaultRegionInfoXml(string fileName) 216 private static void CreateDefaultRegionInfoXml(string fileName)
239 { 217 {
240 new RegionInfo("DEFAULT REGION CONFIG", fileName); 218 new RegionInfo("DEFAULT REGION CONFIG", fileName);
@@ -323,6 +301,32 @@ namespace OpenSim
323 301
324 #region Console Commands 302 #region Console Commands
325 /// <summary> 303 /// <summary>
304 ///
305 /// </summary>
306 /// <param name="fileName"></param>
307 private void RunCommandScript(string fileName)
308 {
309 MainLog.Instance.Verbose("Running command script (" + fileName + ")");
310 if (File.Exists(fileName))
311 {
312 StreamReader readFile = File.OpenText(fileName);
313 string currentCommand = "";
314 while ((currentCommand = readFile.ReadLine()) != null)
315 {
316 if (currentCommand != "")
317 {
318 MainLog.Instance.Verbose("Running '" + currentCommand + "'");
319 MainLog.Instance.MainLogRunCommand(currentCommand);
320 }
321 }
322 }
323 else
324 {
325 MainLog.Instance.Error("Command script missing. Can not run commands");
326 }
327 }
328
329 /// <summary>
326 /// Runs commands issued by the server console from the operator 330 /// Runs commands issued by the server console from the operator
327 /// </summary> 331 /// </summary>
328 /// <param name="command">The first argument of the parameter (the command)</param> 332 /// <param name="command">The first argument of the parameter (the command)</param>