diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index 1d7889d..1719447 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -377,6 +377,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
377 | UUID principalID = new UUID(im.fromAgentID); | 377 | UUID principalID = new UUID(im.fromAgentID); |
378 | UUID friendID = new UUID(im.toAgentID); | 378 | UUID friendID = new UUID(im.toAgentID); |
379 | 379 | ||
380 | m_log.DebugFormat("[FRIENDS]: {0} offered friendship to {1}", principalID, friendID); | ||
381 | |||
380 | // This user wants to be friends with the other user. | 382 | // This user wants to be friends with the other user. |
381 | // Let's add both relations to the DB, but one of them is inactive (-1) | 383 | // Let's add both relations to the DB, but one of them is inactive (-1) |
382 | FriendsService.StoreFriend(principalID, friendID.ToString(), 1); | 384 | FriendsService.StoreFriend(principalID, friendID.ToString(), 1); |
@@ -389,6 +391,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
389 | 391 | ||
390 | private void ForwardFriendshipOffer(UUID agentID, UUID friendID, GridInstantMessage im) | 392 | private void ForwardFriendshipOffer(UUID agentID, UUID friendID, GridInstantMessage im) |
391 | { | 393 | { |
394 | // !!!!!!!! | ||
395 | im.imSessionID = im.fromAgentID; | ||
396 | |||
392 | IClientAPI friendClient = LocateClientObject(friendID); | 397 | IClientAPI friendClient = LocateClientObject(friendID); |
393 | if (friendClient != null) | 398 | if (friendClient != null) |
394 | { | 399 | { |
@@ -414,6 +419,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
414 | { | 419 | { |
415 | FriendsService.StoreFriend(agentID, friendID.ToString(), 1); | 420 | FriendsService.StoreFriend(agentID, friendID.ToString(), 1); |
416 | 421 | ||
422 | m_log.DebugFormat("[FRIENDS]: {0} accepted friendship from {1}", agentID, friendID); | ||
423 | |||
417 | // | 424 | // |
418 | // Notify the friend | 425 | // Notify the friend |
419 | // | 426 | // |