aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorMelanie2011-11-14 20:34:49 +0000
committerMelanie2011-11-14 20:34:49 +0000
commitdf35720cf58e9e408e1c7bc2526b169a1af84d9d (patch)
tree26ceae4ea3e0f32de16eef26c306053523534d31 /OpenSim/Region/CoreModules
parentFix build break (diff)
parentMerge branch 'remove-scene-viewer' (diff)
downloadopensim-SC-df35720cf58e9e408e1c7bc2526b169a1af84d9d.zip
opensim-SC-df35720cf58e9e408e1c7bc2526b169a1af84d9d.tar.gz
opensim-SC-df35720cf58e9e408e1c7bc2526b169a1af84d9d.tar.bz2
opensim-SC-df35720cf58e9e408e1c7bc2526b169a1af84d9d.tar.xz
Merge branch 'master' into bigmerge
Conflicts: OpenSim/Region/Framework/Scenes/SceneViewer.cs
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs4
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs5
2 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 8e5de7d..0c81bb2 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -572,10 +572,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
572 { 572 {
573 m_log.DebugFormat("[FRIENDS]: {0} accepted friendship from {1}", client.AgentId, friendID); 573 m_log.DebugFormat("[FRIENDS]: {0} accepted friendship from {1}", client.AgentId, friendID);
574 574
575 AddFriend(client, friendID); 575 AddFriendship(client, friendID);
576 } 576 }
577 577
578 public void AddFriend(IClientAPI client, UUID friendID) 578 public void AddFriendship(IClientAPI client, UUID friendID)
579 { 579 {
580 StoreFriendships(client.AgentId, friendID); 580 StoreFriendships(client.AgentId, friendID);
581 581
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs
index 942091c..c945dcf 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs
@@ -87,8 +87,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends.Tests
87 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, userId); 87 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, userId);
88 SceneHelpers.AddScenePresence(m_scene, user2Id); 88 SceneHelpers.AddScenePresence(m_scene, user2Id);
89 89
90 // This friendship is currently only one-way, which might be pathalogical in Second Life. 90 // This fiendship is two-way but without a connector, only the first user will receive the online
91 m_fm.AddFriend(sp.ControllingClient, user2Id); 91 // notification.
92 m_fm.AddFriendship(sp.ControllingClient, user2Id);
92 93
93 Assert.That(((TestClient)sp.ControllingClient).OfflineNotificationsReceived.Count, Is.EqualTo(0)); 94 Assert.That(((TestClient)sp.ControllingClient).OfflineNotificationsReceived.Count, Is.EqualTo(0));
94 Assert.That(((TestClient)sp.ControllingClient).OnlineNotificationsReceived.Count, Is.EqualTo(1)); 95 Assert.That(((TestClient)sp.ControllingClient).OnlineNotificationsReceived.Count, Is.EqualTo(1));