aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-04-10 15:28:52 +0000
committerJustin Clarke Casey2008-04-10 15:28:52 +0000
commitba132f3a0bbbc2f749bec9c563e169d22c76f74b (patch)
tree10f2f5622e09c41a7096e85addedf36251fc52a7 /OpenSim/Framework/Communications
parent* Slightly smoother transition between land, shallow water and deep water in ... (diff)
downloadopensim-SC_OLD-ba132f3a0bbbc2f749bec9c563e169d22c76f74b.zip
opensim-SC_OLD-ba132f3a0bbbc2f749bec9c563e169d22c76f74b.tar.gz
opensim-SC_OLD-ba132f3a0bbbc2f749bec9c563e169d22c76f74b.tar.bz2
opensim-SC_OLD-ba132f3a0bbbc2f749bec9c563e169d22c76f74b.tar.xz
* Minor: get CreateNewUserInventory() to return true on success
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/IInventoryServices.cs5
-rw-r--r--OpenSim/Framework/Communications/InventoryServiceBase.cs6
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,