diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index 8f1b5d7..a750c92 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -419,6 +419,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
419 | private void OnApproveFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders) | 419 | private void OnApproveFriendRequest(IClientAPI client, UUID agentID, UUID friendID, List<UUID> callingCardFolders) |
420 | { | 420 | { |
421 | FriendsService.StoreFriend(agentID, friendID.ToString(), 1); | 421 | FriendsService.StoreFriend(agentID, friendID.ToString(), 1); |
422 | // update the local cache | ||
423 | m_Friends[agentID].Friends = FriendsService.GetFriends(agentID); | ||
422 | 424 | ||
423 | m_log.DebugFormat("[FRIENDS]: {0} accepted friendship from {1}", agentID, friendID); | 425 | m_log.DebugFormat("[FRIENDS]: {0} accepted friendship from {1}", agentID, friendID); |
424 | 426 | ||
@@ -434,6 +436,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
434 | (byte)OpenMetaverse.InstantMessageDialog.FriendshipAccepted, client.AgentId.ToString(), false, Vector3.Zero); | 436 | (byte)OpenMetaverse.InstantMessageDialog.FriendshipAccepted, client.AgentId.ToString(), false, Vector3.Zero); |
435 | friendClient.SendInstantMessage(im); | 437 | friendClient.SendInstantMessage(im); |
436 | client.SendAgentOnline(new UUID[] { friendID }); | 438 | client.SendAgentOnline(new UUID[] { friendID }); |
439 | // update the local cache | ||
440 | m_Friends[friendID].Friends = FriendsService.GetFriends(friendID); | ||
437 | // we're done | 441 | // we're done |
438 | return; | 442 | return; |
439 | } | 443 | } |