Ooops.. pay to land owner, not grid. group owned parcel not suported for now. (the pass already expired with kick action)

0.9.0-post-fixes
UbitUmarov 2017-07-25 02:39:12 +01:00
parent 81d1ebc510
commit c5b34a51fd
1 changed files with 7 additions and 1 deletions

View File

@ -561,6 +561,12 @@ namespace OpenSim.Region.CoreModules.World.Land
if(ldata.PassHours == 0) if(ldata.PassHours == 0)
return; return;
if(ldata.IsGroupOwned)
{
remote_client.SendAgentAlertMessage("pass to group owned parcel not suported", false);
return;
}
if((ldata.Flags & (uint)ParcelFlags.UsePassList) == 0) if((ldata.Flags & (uint)ParcelFlags.UsePassList) == 0)
return; return;
@ -607,7 +613,7 @@ namespace OpenSim.Region.CoreModules.World.Land
return; return;
} }
mm.ApplyCharge(remote_client.AgentId, cost, MoneyTransactionType.LandPassSale); mm.MoveMoney(remote_client.AgentId, ldata.OwnerID, cost, String.Format("Parcel '{0}' pass sell",ldata.Name));
if (idx != -1) if (idx != -1)
ldata.ParcelAccessList.RemoveAt(idx); ldata.ParcelAccessList.RemoveAt(idx);