aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2017-07-25 02:39:12 +0100
committerUbitUmarov2017-07-25 02:39:12 +0100
commitc5b34a51fd81091493f9160b618ecbae9e9e78eb (patch)
treeab1630e30bbcd93839c90427b998b1fc5cfb33bc /OpenSim
parentadd first code to process parcel buy pass. Still testing, and still no kick o... (diff)
downloadopensim-SC-c5b34a51fd81091493f9160b618ecbae9e9e78eb.zip
opensim-SC-c5b34a51fd81091493f9160b618ecbae9e9e78eb.tar.gz
opensim-SC-c5b34a51fd81091493f9160b618ecbae9e9e78eb.tar.bz2
opensim-SC-c5b34a51fd81091493f9160b618ecbae9e9e78eb.tar.xz
Ooops.. pay to land owner, not grid. group owned parcel not suported for now. (the pass already expired with kick action)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 54e9e59..377f243 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -561,6 +561,12 @@ namespace OpenSim.Region.CoreModules.World.Land
561 if(ldata.PassHours == 0) 561 if(ldata.PassHours == 0)
562 return; 562 return;
563 563
564 if(ldata.IsGroupOwned)
565 {
566 remote_client.SendAgentAlertMessage("pass to group owned parcel not suported", false);
567 return;
568 }
569
564 if((ldata.Flags & (uint)ParcelFlags.UsePassList) == 0) 570 if((ldata.Flags & (uint)ParcelFlags.UsePassList) == 0)
565 return; 571 return;
566 572
@@ -607,7 +613,7 @@ namespace OpenSim.Region.CoreModules.World.Land
607 return; 613 return;
608 } 614 }
609 615
610 mm.ApplyCharge(remote_client.AgentId, cost, MoneyTransactionType.LandPassSale); 616 mm.MoveMoney(remote_client.AgentId, ldata.OwnerID, cost, String.Format("Parcel '{0}' pass sell",ldata.Name));
611 617
612 if (idx != -1) 618 if (idx != -1)
613 ldata.ParcelAccessList.RemoveAt(idx); 619 ldata.ParcelAccessList.RemoveAt(idx);