do dispatch RequestLure ims

0.9.1.1
UbitUmarov 2019-12-16 01:27:49 +00:00
parent d400b2c545
commit 8c21b30a51
3 changed files with 12 additions and 1 deletions

View File

@ -150,6 +150,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
void OnInstantMessage(IClientAPI client, GridInstantMessage im) void OnInstantMessage(IClientAPI client, GridInstantMessage im)
{ {
if (im.dialog == (byte)InstantMessageDialog.RequestLure)
{
if (m_TransferModule != null)
m_TransferModule.SendInstantMessage(im, delegate (bool success) { });
}
} }
void OnIncomingInstantMessage(GridInstantMessage im) void OnIncomingInstantMessage(GridInstantMessage im)
@ -170,6 +175,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
if (m_TransferModule != null) if (m_TransferModule != null)
m_TransferModule.SendInstantMessage(im, delegate(bool success) { }); m_TransferModule.SendInstantMessage(im, delegate(bool success) { });
} }
} }
public void OnStartLure(byte lureType, string message, UUID targetid, IClientAPI client) public void OnStartLure(byte lureType, string message, UUID targetid, IClientAPI client)

View File

@ -143,6 +143,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
public void OnInstantMessage(IClientAPI client, GridInstantMessage im) public void OnInstantMessage(IClientAPI client, GridInstantMessage im)
{ {
if (im.dialog == (byte)InstantMessageDialog.RequestLure)
{
if (m_TransferModule != null)
m_TransferModule.SendInstantMessage(im, delegate (bool success) { });
}
} }
public void OnStartLure(byte lureType, string message, UUID targetid, IClientAPI client) public void OnStartLure(byte lureType, string message, UUID targetid, IClientAPI client)

View File

@ -82,7 +82,7 @@ namespace OpenSim.Region.CoreModules.World
m_rndnums = new Random(seed); m_rndnums = new Random(seed);
GenerateCloudCover(); GenerateCloudCover();
m_dataVersion = (int)m_scene.AllocateLocalId(); m_dataVersion = m_scene.AllocateIntId();
scene.EventManager.OnNewClient += CloudsToClient; scene.EventManager.OnNewClient += CloudsToClient;
scene.EventManager.OnFrame += CloudUpdate; scene.EventManager.OnFrame += CloudUpdate;