From 0678a4d52de833945a211ad1201a6c49ea1126e9 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 7 Jan 2008 19:30:10 +0000 Subject: * Message Server stuff. --- OpenSim/Grid/MessagingServer/MessageService.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'OpenSim/Grid/MessagingServer/MessageService.cs') diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs index d8221dc..22d149f 100644 --- a/OpenSim/Grid/MessagingServer/MessageService.cs +++ b/OpenSim/Grid/MessagingServer/MessageService.cs @@ -144,20 +144,20 @@ namespace OpenSim.Grid.MessagingServer /// public void addBackReference(LLUUID agentID, LLUUID friendID) { - if (m_presence_BackReferences.Contains(agentID)) + if (m_presence_BackReferences.Contains(friendID)) { - List presenseBackReferences = (List)m_presence_BackReferences[agentID]; - if (!presenseBackReferences.Contains(friendID)) + List presenseBackReferences = (List)m_presence_BackReferences[friendID]; + if (!presenseBackReferences.Contains(agentID)) { - presenseBackReferences.Add(friendID); + presenseBackReferences.Add(agentID); } - m_presence_BackReferences[agentID] = presenseBackReferences; + m_presence_BackReferences[friendID] = presenseBackReferences; } else { List presenceBackReferences = new List(); - presenceBackReferences.Add(friendID); - m_presence_BackReferences[agentID] = presenceBackReferences; + presenceBackReferences.Add(agentID); + m_presence_BackReferences[friendID] = presenceBackReferences; } } @@ -168,12 +168,12 @@ namespace OpenSim.Grid.MessagingServer /// public void removeBackReference(LLUUID agentID, LLUUID friendID) { - if (m_presence_BackReferences.Contains(agentID)) + if (m_presence_BackReferences.Contains(friendID)) { - List presenseBackReferences = (List)m_presence_BackReferences[agentID]; - if (presenseBackReferences.Contains(friendID)) + List presenseBackReferences = (List)m_presence_BackReferences[friendID]; + if (presenseBackReferences.Contains(agentID)) { - presenseBackReferences.Remove(friendID); + presenseBackReferences.Remove(agentID); } // If there are no more backreferences for this agent, -- cgit v1.1