aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Friends
diff options
context:
space:
mode:
authorDiva Canto2010-02-27 10:24:55 -0800
committerDiva Canto2010-02-27 10:24:55 -0800
commit3906a14857eb3fbef9705240763afb9af1c9e303 (patch)
tree2fe985bc0e4910303745a0d84e89e4965d974891 /OpenSim/Region/CoreModules/Avatar/Friends
parentImplement the requestonlinenotification method (diff)
downloadopensim-SC_OLD-3906a14857eb3fbef9705240763afb9af1c9e303.zip
opensim-SC_OLD-3906a14857eb3fbef9705240763afb9af1c9e303.tar.gz
opensim-SC_OLD-3906a14857eb3fbef9705240763afb9af1c9e303.tar.bz2
opensim-SC_OLD-3906a14857eb3fbef9705240763afb9af1c9e303.tar.xz
Friends online notifications upon friendship now working (same sim only).
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Friends')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 1719447..34f14df 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -432,6 +432,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
432 GridInstantMessage im = new GridInstantMessage(client.Scene, client.AgentId, client.Name, friendID, 432 GridInstantMessage im = new GridInstantMessage(client.Scene, client.AgentId, client.Name, friendID,
433 (byte)OpenMetaverse.InstantMessageDialog.FriendshipAccepted, client.AgentId.ToString(), false, Vector3.Zero); 433 (byte)OpenMetaverse.InstantMessageDialog.FriendshipAccepted, client.AgentId.ToString(), false, Vector3.Zero);
434 friendClient.SendInstantMessage(im); 434 friendClient.SendInstantMessage(im);
435 client.SendAgentOnline(new UUID[] { friendID });
435 // we're done 436 // we're done
436 return; 437 return;
437 } 438 }
@@ -442,7 +443,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
442 { 443 {
443 GridRegion region = GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, friendSession.RegionID); 444 GridRegion region = GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, friendSession.RegionID);
444 m_FriendsSimConnector.FriendshipApproved(region, agentID, friendID); 445 m_FriendsSimConnector.FriendshipApproved(region, agentID, friendID);
446 client.SendAgentOnline(new UUID[] { friendID });
445 } 447 }
448
446 } 449 }
447 450
448 private void OnDenyFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders) 451 private void OnDenyFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders)