From 0c3426935e159bffa0cc10cbf9e38e9f385d09d0 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Mon, 5 Jan 2009 21:45:20 +0000 Subject: Use correct name for friendship offer. Fixes Mantis #2959. --- OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs index a1f0bf5..3490b6f 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs @@ -431,6 +431,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends // some properties are misused here: // fromAgentName is the *destination* name (the friend we offer friendship to) + ScenePresence initiator = GetAnyPresenceFromAgentID(new UUID(im.fromAgentID)); + im.fromAgentName = initiator != null ? initiator.Name : "(hippo)"; m_log.DebugFormat("[FRIEND]: Offer(38) - From: {0}, FromName: {1} To: {2}, Session: {3}, Message: {4}, Offline {5}", im.fromAgentID, im.fromAgentName, im.toAgentID, im.imSessionID, im.message, im.offline); -- cgit v1.1