* Bugfix with instant message handlers. Looking at implementing grid IM server, ideally using a known scalable infrastructure.
parent
855ebe739b
commit
74410efb22
|
@ -109,13 +109,19 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
public void InstantMessage(LLUUID fromAgentID, LLUUID toAgentID, uint timestamp, string fromAgentName, string message)
|
public void InstantMessage(LLUUID fromAgentID, LLUUID toAgentID, uint timestamp, string fromAgentName, string message)
|
||||||
{
|
{
|
||||||
if (this.Avatars.ContainsKey(toAgentID))
|
if (this.Avatars.ContainsKey(toAgentID))
|
||||||
|
{
|
||||||
|
if (this.Avatars.ContainsKey(fromAgentID))
|
||||||
{
|
{
|
||||||
// Local sim message
|
// Local sim message
|
||||||
ScenePresence avatar = this.Avatars[toAgentID];
|
ScenePresence avatar = this.Avatars[fromAgentID];
|
||||||
|
|
||||||
avatar.ControllingClient.SendInstantMessage(message, toAgentID);
|
avatar.ControllingClient.SendInstantMessage(message, toAgentID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
// Message came from a user outside the sim, ignore?
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
// Grid message
|
// Grid message
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue