* Minor: get CreateNewUserInventory() to return true on success
parent
f2d36186f0
commit
ba132f3a0b
|
@ -66,10 +66,11 @@ namespace OpenSim.Framework.Communications
|
|||
void DeleteInventoryItem(LLUUID userID, InventoryItemBase item);
|
||||
|
||||
/// <summary>
|
||||
/// Create a new inventory for the given user
|
||||
/// Create a new inventory for the given user.
|
||||
/// </summary>
|
||||
/// <param name="user"></param>
|
||||
void CreateNewUserInventory(LLUUID user);
|
||||
/// <returns>true if the inventory was successfully created, false otherwise</returns>
|
||||
bool CreateNewUserInventory(LLUUID user);
|
||||
|
||||
bool HasInventoryForUser(LLUUID userID);
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ namespace OpenSim.Framework.Communications
|
|||
}
|
||||
|
||||
// See IInventoryServices
|
||||
public void CreateNewUserInventory(LLUUID user)
|
||||
public bool CreateNewUserInventory(LLUUID user)
|
||||
{
|
||||
InventoryFolderBase existingRootFolder = RequestRootFolder(user);
|
||||
|
||||
|
@ -151,7 +151,11 @@ namespace OpenSim.Framework.Communications
|
|||
UsersInventory inven = new UsersInventory();
|
||||
inven.CreateNewInventorySet(user);
|
||||
AddNewInventorySet(inven);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack,
|
||||
|
|
|
@ -208,8 +208,9 @@ namespace OpenSim.Region.Communications.OGS1
|
|||
return null;
|
||||
}
|
||||
|
||||
public void CreateNewUserInventory(LLUUID user)
|
||||
public bool CreateNewUserInventory(LLUUID user)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// See IInventoryServices
|
||||
|
|
Loading…
Reference in New Issue