From de5c2801e8c8c0274de97370531dc93f5c57077b Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 27 Feb 2010 08:14:37 -0800 Subject: Friendships established. --- OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs') 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 UUID principalID = new UUID(im.fromAgentID); UUID friendID = new UUID(im.toAgentID); + m_log.DebugFormat("[FRIENDS]: {0} offered friendship to {1}", principalID, friendID); + // This user wants to be friends with the other user. // Let's add both relations to the DB, but one of them is inactive (-1) FriendsService.StoreFriend(principalID, friendID.ToString(), 1); @@ -389,6 +391,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends private void ForwardFriendshipOffer(UUID agentID, UUID friendID, GridInstantMessage im) { + // !!!!!!!! + im.imSessionID = im.fromAgentID; + IClientAPI friendClient = LocateClientObject(friendID); if (friendClient != null) { @@ -414,6 +419,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends { FriendsService.StoreFriend(agentID, friendID.ToString(), 1); + m_log.DebugFormat("[FRIENDS]: {0} accepted friendship from {1}", agentID, friendID); + // // Notify the friend // -- cgit v1.1