diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 07ab34d67f..ddea383be6 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -213,28 +213,6 @@ namespace OpenSim
}
}
- private void RunCommandScript(string fileName)
- {
- MainLog.Instance.Verbose("Running command script (" + fileName + ")");
- if (File.Exists(fileName))
- {
- StreamReader readFile = File.OpenText(fileName);
- string currentCommand = "";
- while ((currentCommand = readFile.ReadLine()) != null)
- {
- if (currentCommand != "")
- {
- MainLog.Instance.Verbose("Running '" + currentCommand + "'");
- MainLog.Instance.MainLogRunCommand(currentCommand);
- }
- }
- }
- else
- {
- MainLog.Instance.Error("Command script missing. Can not run commands");
- }
- }
-
private static void CreateDefaultRegionInfoXml(string fileName)
{
new RegionInfo("DEFAULT REGION CONFIG", fileName);
@@ -322,6 +300,32 @@ namespace OpenSim
}
#region Console Commands
+ ///
+ ///
+ ///
+ ///
+ private void RunCommandScript(string fileName)
+ {
+ MainLog.Instance.Verbose("Running command script (" + fileName + ")");
+ if (File.Exists(fileName))
+ {
+ StreamReader readFile = File.OpenText(fileName);
+ string currentCommand = "";
+ while ((currentCommand = readFile.ReadLine()) != null)
+ {
+ if (currentCommand != "")
+ {
+ MainLog.Instance.Verbose("Running '" + currentCommand + "'");
+ MainLog.Instance.MainLogRunCommand(currentCommand);
+ }
+ }
+ }
+ else
+ {
+ MainLog.Instance.Error("Command script missing. Can not run commands");
+ }
+ }
+
///
/// Runs commands issued by the server console from the operator
///
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index 65732bd040..1a409bf0fb 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -63,6 +63,10 @@ namespace OpenSim.Region.Communications.Local
{
Console.WriteLine("Unknown Master User after creation attempt. No clue what to do here.");
}
+ else
+ {
+ m_Parent.InvenServices.CreateNewUserInventory(profile.UUID);
+ }
return profile;
}