aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 80982fd..5552be7 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -503,7 +503,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
503 UUID principalID = new UUID(im.fromAgentID); 503 UUID principalID = new UUID(im.fromAgentID);
504 UUID friendID = new UUID(im.toAgentID); 504 UUID friendID = new UUID(im.toAgentID);
505 505
506 m_log.DebugFormat("[FRIENDS]: {0} offered friendship to {1}", principalID, friendID); 506 m_log.DebugFormat("[FRIENDS]: {0} ({1}) offered friendship to {2}", principalID, im.fromAgentName, friendID);
507 507
508 // This user wants to be friends with the other user. 508 // This user wants to be friends with the other user.
509 // Let's add the relation backwards, in case the other is not online 509 // Let's add the relation backwards, in case the other is not online
@@ -521,6 +521,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
521 im.imSessionID = im.fromAgentID; 521 im.imSessionID = im.fromAgentID;
522 522
523 // Try the local sim 523 // Try the local sim
524 UserAccount account = UserAccountService.GetUserAccount(Scene.RegionInfo.ScopeID, agentID);
525 im.fromAgentName = (account == null) ? "Unknown" : account.FirstName + " " + account.LastName;
526
524 if (LocalFriendshipOffered(friendID, im)) 527 if (LocalFriendshipOffered(friendID, im))
525 return; 528 return;
526 529