* Message Server stuff.

afrisby
Teravus Ovares 2008-01-07 19:30:10 +00:00
parent 1718c39e10
commit 0678a4d52d
1 changed files with 11 additions and 11 deletions

View File

@ -144,20 +144,20 @@ namespace OpenSim.Grid.MessagingServer
/// <param name="friendID"></param> /// <param name="friendID"></param>
public void addBackReference(LLUUID agentID, LLUUID friendID) public void addBackReference(LLUUID agentID, LLUUID friendID)
{ {
if (m_presence_BackReferences.Contains(agentID)) if (m_presence_BackReferences.Contains(friendID))
{ {
List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[agentID]; List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[friendID];
if (!presenseBackReferences.Contains(friendID)) if (!presenseBackReferences.Contains(agentID))
{ {
presenseBackReferences.Add(friendID); presenseBackReferences.Add(agentID);
} }
m_presence_BackReferences[agentID] = presenseBackReferences; m_presence_BackReferences[friendID] = presenseBackReferences;
} }
else else
{ {
List<LLUUID> presenceBackReferences = new List<LLUUID>(); List<LLUUID> presenceBackReferences = new List<LLUUID>();
presenceBackReferences.Add(friendID); presenceBackReferences.Add(agentID);
m_presence_BackReferences[agentID] = presenceBackReferences; m_presence_BackReferences[friendID] = presenceBackReferences;
} }
} }
@ -168,12 +168,12 @@ namespace OpenSim.Grid.MessagingServer
/// <param name="friendID"></param> /// <param name="friendID"></param>
public void removeBackReference(LLUUID agentID, LLUUID friendID) public void removeBackReference(LLUUID agentID, LLUUID friendID)
{ {
if (m_presence_BackReferences.Contains(agentID)) if (m_presence_BackReferences.Contains(friendID))
{ {
List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[agentID]; List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[friendID];
if (presenseBackReferences.Contains(friendID)) if (presenseBackReferences.Contains(agentID))
{ {
presenseBackReferences.Remove(friendID); presenseBackReferences.Remove(agentID);
} }
// If there are no more backreferences for this agent, // If there are no more backreferences for this agent,