do dispatch RequestLure ims
parent
d400b2c545
commit
8c21b30a51
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue