From 0b239643491b893463700add93184b5f8f7d9394 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 26 Jul 2017 19:12:12 +0100 Subject: [PATCH] change buypass insuficent funds to make clear that its on that region money system (buypass now uses the new MoveMoney) --- .../Region/CoreModules/World/Land/LandManagementModule.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 1fc460935e..64411e686a 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 WorkManager.RunInThreadPool( delegate { + string regionName = m_scene.RegionInfo.RegionName; + if (!mm.AmountCovered(remote_client.AgentId, cost)) { - remote_client.SendAgentAlertMessage("Insufficient funds", true); + remote_client.SendAgentAlertMessage(String.Format("Insufficient funds in region '{0}' money system", regionName), true); return; } - string regionName = m_scene.RegionInfo.RegionName; string payDescription = String.Format("Parcel '{0}' at region '{1} {2:0.###} hours access pass", ldata.Name, regionName, ldata.PassHours); if(!mm.MoveMoney(remote_client.AgentId, ldata.OwnerID, cost,MoneyTransactionType.LandPassSale, payDescription))