aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 3a86a46..32c2a43 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -194,10 +194,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
194 get { return null; } 194 get { return null; }
195 } 195 }
196 196
197 public void OfferFriendship(UUID fromUserId, IClientAPI toUserClient, string offerMessage)
198 {
199 }
200
201 public uint GetFriendPerms(UUID principalID, UUID friendID) 197 public uint GetFriendPerms(UUID principalID, UUID friendID)
202 { 198 {
203 if (!m_Friends.ContainsKey(principalID)) 199 if (!m_Friends.ContainsKey(principalID))
@@ -453,8 +449,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
453 449
454 // This user wants to be friends with the other user. 450 // This user wants to be friends with the other user.
455 // Let's add both relations to the DB, but one of them is inactive (-1) 451 // Let's add both relations to the DB, but one of them is inactive (-1)
456 FriendsService.StoreFriend(principalID, friendID.ToString(), 1); 452 FriendsService.StoreFriend(principalID, friendID.ToString(), 0);
457 FriendsService.StoreFriend(friendID, principalID.ToString(), -1);
458 453
459 // Now let's ask the other user to be friends with this user 454 // Now let's ask the other user to be friends with this user
460 ForwardFriendshipOffer(principalID, friendID, im); 455 ForwardFriendshipOffer(principalID, friendID, im);
@@ -486,6 +481,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
486 private void OnApproveFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders) 481 private void OnApproveFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders)
487 { 482 {
488 FriendsService.StoreFriend(agentID, friendID.ToString(), 1); 483 FriendsService.StoreFriend(agentID, friendID.ToString(), 1);
484 FriendsService.StoreFriend(friendID, agentID.ToString(), 1);
489 // update the local cache 485 // update the local cache
490 m_Friends[agentID].Friends = FriendsService.GetFriends(agentID); 486 m_Friends[agentID].Friends = FriendsService.GetFriends(agentID);
491 487