aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index d5f14bf..f05aaa9 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3180,8 +3180,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3180 return; 3180 return;
3181 } 3181 }
3182 3182
3183 string reason;
3183 money.ObjectGiveMoney( 3184 money.ObjectGiveMoney(
3184 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount,UUID.Zero); 3185 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount,UUID.Zero, out reason);
3185 }); 3186 });
3186 3187
3187 return 0; 3188 return 0;
@@ -12841,8 +12842,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
12841 return; 12842 return;
12842 } 12843 }
12843 12844
12845 string reason;
12844 bool result = money.ObjectGiveMoney( 12846 bool result = money.ObjectGiveMoney(
12845 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount, txn); 12847 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount, txn, out reason);
12846 12848
12847 if (result) 12849 if (result)
12848 { 12850 {
@@ -12850,7 +12852,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
12850 return; 12852 return;
12851 } 12853 }
12852 12854
12853 replydata = "LINDENDOLLAR_INSUFFICIENTFUNDS"; 12855 replydata = reason;
12854 } 12856 }
12855 finally 12857 finally
12856 { 12858 {