diff options
author | Oren Hurvitz | 2014-05-05 11:06:49 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-05-06 07:28:44 +0100 |
commit | 1e5cff32fc41356971d6ad601cbee7ad62472c76 (patch) | |
tree | be61c0ae3f814ec2a54d1b0ef63d42f86fce2600 /OpenSim/Region/OptionalModules/Avatar | |
parent | Log whenever an inventory operation is blocked because the item/folder isn't ... (diff) | |
download | opensim-SC-1e5cff32fc41356971d6ad601cbee7ad62472c76.zip opensim-SC-1e5cff32fc41356971d6ad601cbee7ad62472c76.tar.gz opensim-SC-1e5cff32fc41356971d6ad601cbee7ad62472c76.tar.bz2 opensim-SC-1e5cff32fc41356971d6ad601cbee7ad62472c76.tar.xz |
Show more meaningful error messages when failed to give an item to another user
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index fc8cae2..f34152c 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | |||
@@ -560,12 +560,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
560 | if (m_debugEnabled) | 560 | if (m_debugEnabled) |
561 | m_log.DebugFormat("[Groups]: Giving inventory from {0} to {1}", giver, remoteClient.AgentId); | 561 | m_log.DebugFormat("[Groups]: Giving inventory from {0} to {1}", giver, remoteClient.AgentId); |
562 | 562 | ||
563 | string message; | ||
563 | InventoryItemBase itemCopy = ((Scene)(remoteClient.Scene)).GiveInventoryItem(remoteClient.AgentId, | 564 | InventoryItemBase itemCopy = ((Scene)(remoteClient.Scene)).GiveInventoryItem(remoteClient.AgentId, |
564 | giver, attachmentUUID); | 565 | giver, attachmentUUID, out message); |
565 | 566 | ||
566 | if (itemCopy == null) | 567 | if (itemCopy == null) |
567 | { | 568 | { |
568 | remoteClient.SendAgentAlertMessage("Can't find item to give. Nothing given.", false); | 569 | remoteClient.SendAgentAlertMessage(message, false); |
569 | return; | 570 | return; |
570 | } | 571 | } |
571 | 572 | ||