diff options
author | Melanie | 2010-03-01 00:02:14 +0000 |
---|---|---|
committer | Melanie | 2010-03-01 00:02:14 +0000 |
commit | bfcc57c0712170e3431617bcb09999bfbb96b8dd (patch) | |
tree | 137f22b0e6eb5f57487c297bbf4be5d197bd60d5 /OpenSim/Region/CoreModules/Avatar | |
parent | Merge branch 'presence-refactor' of melanie@opensimulator.org:/var/git/opensi... (diff) | |
download | opensim-SC-bfcc57c0712170e3431617bcb09999bfbb96b8dd.zip opensim-SC-bfcc57c0712170e3431617bcb09999bfbb96b8dd.tar.gz opensim-SC-bfcc57c0712170e3431617bcb09999bfbb96b8dd.tar.bz2 opensim-SC-bfcc57c0712170e3431617bcb09999bfbb96b8dd.tar.xz |
Change friends to handle offers as it was originally designed. This may
need to be changed in SQLite & MSSQL as well
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 8 |
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 | ||