aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorUbitUmarov2017-07-26 19:12:12 +0100
committerUbitUmarov2017-07-26 19:12:12 +0100
commit0b239643491b893463700add93184b5f8f7d9394 (patch)
tree35296f74be3b4d41a98a8fc4c948dcaf7f0badb2 /OpenSim/Region/CoreModules
parent add new funtion bool MoveMoney(UUID fromUser, UUID toUser, int amount, Money... (diff)
downloadopensim-SC_OLD-0b239643491b893463700add93184b5f8f7d9394.zip
opensim-SC_OLD-0b239643491b893463700add93184b5f8f7d9394.tar.gz
opensim-SC_OLD-0b239643491b893463700add93184b5f8f7d9394.tar.bz2
opensim-SC_OLD-0b239643491b893463700add93184b5f8f7d9394.tar.xz
change buypass insuficent funds to make clear that its on that region money system (buypass now uses the new MoveMoney)
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 1fc4609..64411e6 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -611,13 +611,14 @@ namespace OpenSim.Region.CoreModules.World.Land
611 WorkManager.RunInThreadPool( 611 WorkManager.RunInThreadPool(
612 delegate 612 delegate
613 { 613 {
614 string regionName = m_scene.RegionInfo.RegionName;
615
614 if (!mm.AmountCovered(remote_client.AgentId, cost)) 616 if (!mm.AmountCovered(remote_client.AgentId, cost))
615 { 617 {
616 remote_client.SendAgentAlertMessage("Insufficient funds", true); 618 remote_client.SendAgentAlertMessage(String.Format("Insufficient funds in region '{0}' money system", regionName), true);
617 return; 619 return;
618 } 620 }
619 621
620 string regionName = m_scene.RegionInfo.RegionName;
621 string payDescription = String.Format("Parcel '{0}' at region '{1} {2:0.###} hours access pass", ldata.Name, regionName, ldata.PassHours); 622 string payDescription = String.Format("Parcel '{0}' at region '{1} {2:0.###} hours access pass", ldata.Name, regionName, ldata.PassHours);
622 623
623 if(!mm.MoveMoney(remote_client.AgentId, ldata.OwnerID, cost,MoneyTransactionType.LandPassSale, payDescription)) 624 if(!mm.MoveMoney(remote_client.AgentId, ldata.OwnerID, cost,MoneyTransactionType.LandPassSale, payDescription))