Change EconomyDataRequest signature to use an IClientAPI rather than UUID. This is needed because recent LL viewer codebases call this earlier in login when the client is not yet established in the sim and can't be found by UUID.
Sending the reply requires having the IClientAPI.user_profiles
parent
5d0a8ff391
commit
03c9d8ae4f
|
@ -313,7 +313,7 @@ namespace OpenSim.Framework
|
||||||
public delegate void ObjectPermissions(
|
public delegate void ObjectPermissions(
|
||||||
IClientAPI controller, UUID agentID, UUID sessionID, byte field, uint localId, uint mask, byte set);
|
IClientAPI controller, UUID agentID, UUID sessionID, byte field, uint localId, uint mask, byte set);
|
||||||
|
|
||||||
public delegate void EconomyDataRequest(UUID agentID);
|
public delegate void EconomyDataRequest(IClientAPI client);
|
||||||
|
|
||||||
public delegate void ObjectIncludeInSearch(IClientAPI remoteClient, bool IncludeInSearch, uint localID);
|
public delegate void ObjectIncludeInSearch(IClientAPI remoteClient, bool IncludeInSearch, uint localID);
|
||||||
|
|
||||||
|
|
|
@ -9682,7 +9682,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
EconomyDataRequest handlerEconomoyDataRequest = OnEconomyDataRequest;
|
EconomyDataRequest handlerEconomoyDataRequest = OnEconomyDataRequest;
|
||||||
if (handlerEconomoyDataRequest != null)
|
if (handlerEconomoyDataRequest != null)
|
||||||
{
|
{
|
||||||
handlerEconomoyDataRequest(AgentId);
|
handlerEconomoyDataRequest(this);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -688,11 +688,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||||
/// Event called Economy Data Request handler.
|
/// Event called Economy Data Request handler.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="agentId"></param>
|
/// <param name="agentId"></param>
|
||||||
public void EconomyDataRequestHandler(UUID agentId)
|
public void EconomyDataRequestHandler(IClientAPI user)
|
||||||
{
|
|
||||||
IClientAPI user = LocateClientObject(agentId);
|
|
||||||
|
|
||||||
if (user != null)
|
|
||||||
{
|
{
|
||||||
Scene s = LocateSceneClientIn(user.AgentId);
|
Scene s = LocateSceneClientIn(user.AgentId);
|
||||||
|
|
||||||
|
@ -701,7 +697,6 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||||
PriceParcelRent, PricePublicObjectDecay, PricePublicObjectDelete, PriceRentLight, PriceUpload,
|
PriceParcelRent, PricePublicObjectDecay, PricePublicObjectDelete, PriceRentLight, PriceUpload,
|
||||||
TeleportMinPrice, TeleportPriceExponent);
|
TeleportMinPrice, TeleportPriceExponent);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void ValidateLandBuy(Object osender, EventManager.LandBuyArgs e)
|
private void ValidateLandBuy(Object osender, EventManager.LandBuyArgs e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue