aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local/LocalUserServices.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Communications/Local/LocalUserServices.cs23
1 files changed, 4 insertions, 19 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index 8649d61..e0c9c83 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -34,13 +34,11 @@ namespace OpenSim.Region.Communications.Local
34{ 34{
35 public class LocalUserServices : UserManagerBase 35 public class LocalUserServices : UserManagerBase
36 { 36 {
37 // private readonly NetworkServersInfo m_serversInfo;
38 private readonly uint m_defaultHomeX; 37 private readonly uint m_defaultHomeX;
39 private readonly uint m_defaultHomeY; 38 private readonly uint m_defaultHomeY;
40 private IInterServiceInventoryServices m_interServiceInventoryService;
41 39
42 /// <summary> 40 /// <summary>
43 /// 41 /// User services used when OpenSim is running in standalone mode.
44 /// </summary> 42 /// </summary>
45 /// <param name="serversInfo"></param> 43 /// <param name="serversInfo"></param>
46 /// <param name="defaultHomeLocX"></param> 44 /// <param name="defaultHomeLocX"></param>
@@ -49,13 +47,12 @@ namespace OpenSim.Region.Communications.Local
49 /// <param name="statsCollector">Can be null if stats collection is not required.</param> 47 /// <param name="statsCollector">Can be null if stats collection is not required.</param>
50 public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY, 48 public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY,
51 IInterServiceInventoryServices interServiceInventoryService) 49 IInterServiceInventoryServices interServiceInventoryService)
50 : base(interServiceInventoryService)
52 { 51 {
53 // m_serversInfo = serversInfo; 52 // m_serversInfo = serversInfo;
54 53
55 m_defaultHomeX = defaultHomeLocX; 54 m_defaultHomeX = defaultHomeLocX;
56 m_defaultHomeY = defaultHomeLocY; 55 m_defaultHomeY = defaultHomeLocY;
57
58 m_interServiceInventoryService = interServiceInventoryService;
59 } 56 }
60 57
61 public override UserProfileData SetupMasterUser(string firstName, string lastName) 58 public override UserProfileData SetupMasterUser(string firstName, string lastName)
@@ -72,20 +69,8 @@ namespace OpenSim.Region.Communications.Local
72 } 69 }
73 70
74 Console.WriteLine("Unknown Master User. Sandbox Mode: Creating Account"); 71 Console.WriteLine("Unknown Master User. Sandbox Mode: Creating Account");
75 AddUserProfile(firstName, lastName, password, "", m_defaultHomeX, m_defaultHomeY); 72 AddUser(firstName, lastName, password, "", m_defaultHomeX, m_defaultHomeY);
76 73 return GetUserProfile(firstName, lastName);
77 profile = GetUserProfile(firstName, lastName);
78
79 if (profile == null)
80 {
81 Console.WriteLine("[LOCAL USER SERVICES]: Unknown Master User after creation attempt. No clue what to do here.");
82 }
83 else
84 {
85 m_interServiceInventoryService.CreateNewUserInventory(profile.ID);
86 }
87
88 return profile;
89 } 74 }
90 75
91 public override UserProfileData SetupMasterUser(UUID uuid) 76 public override UserProfileData SetupMasterUser(UUID uuid)