Use correct name for friendship offer. Fixes Mantis #2959.

0.6.2-post-fixes
Homer Horwitz 2009-01-05 21:45:20 +00:00
parent b077723a20
commit 0c3426935e
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
// some properties are misused here: // some properties are misused here:
// fromAgentName is the *destination* name (the friend we offer friendship to) // 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}", 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); im.fromAgentID, im.fromAgentName, im.toAgentID, im.imSessionID, im.message, im.offline);