diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/IInventoryServices.cs | 5 | ||||
-rw-r--r-- | OpenSim/Framework/Communications/InventoryServiceBase.cs | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/IInventoryServices.cs b/OpenSim/Framework/Communications/IInventoryServices.cs index eaa2350..966ab75 100644 --- a/OpenSim/Framework/Communications/IInventoryServices.cs +++ b/OpenSim/Framework/Communications/IInventoryServices.cs | |||
@@ -66,10 +66,11 @@ namespace OpenSim.Framework.Communications | |||
66 | void DeleteInventoryItem(LLUUID userID, InventoryItemBase item); | 66 | void DeleteInventoryItem(LLUUID userID, InventoryItemBase item); |
67 | 67 | ||
68 | /// <summary> | 68 | /// <summary> |
69 | /// Create a new inventory for the given user | 69 | /// Create a new inventory for the given user. |
70 | /// </summary> | 70 | /// </summary> |
71 | /// <param name="user"></param> | 71 | /// <param name="user"></param> |
72 | void CreateNewUserInventory(LLUUID user); | 72 | /// <returns>true if the inventory was successfully created, false otherwise</returns> |
73 | bool CreateNewUserInventory(LLUUID user); | ||
73 | 74 | ||
74 | bool HasInventoryForUser(LLUUID userID); | 75 | bool HasInventoryForUser(LLUUID userID); |
75 | 76 | ||
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 0d19932..f9a47b1 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs | |||
@@ -135,7 +135,7 @@ namespace OpenSim.Framework.Communications | |||
135 | } | 135 | } |
136 | 136 | ||
137 | // See IInventoryServices | 137 | // See IInventoryServices |
138 | public void CreateNewUserInventory(LLUUID user) | 138 | public bool CreateNewUserInventory(LLUUID user) |
139 | { | 139 | { |
140 | InventoryFolderBase existingRootFolder = RequestRootFolder(user); | 140 | InventoryFolderBase existingRootFolder = RequestRootFolder(user); |
141 | 141 | ||
@@ -151,7 +151,11 @@ namespace OpenSim.Framework.Communications | |||
151 | UsersInventory inven = new UsersInventory(); | 151 | UsersInventory inven = new UsersInventory(); |
152 | inven.CreateNewInventorySet(user); | 152 | inven.CreateNewInventorySet(user); |
153 | AddNewInventorySet(inven); | 153 | AddNewInventorySet(inven); |
154 | |||
155 | return true; | ||
154 | } | 156 | } |
157 | |||
158 | return false; | ||
155 | } | 159 | } |
156 | 160 | ||
157 | public abstract void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack, | 161 | public abstract void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack, |