mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
change buypass insuficent funds to make clear that its on that region money system (buypass now uses the new MoveMoney)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user