diff options
author | Melanie | 2010-06-19 20:32:01 +0100 |
---|---|---|
committer | Melanie | 2010-06-19 20:32:01 +0100 |
commit | 04b60aa49067060779cd541e9a06ad947bfecd08 (patch) | |
tree | d0da6005a2457640f433fe1b313e36cb71cc3976 /OpenSim/Region/CoreModules/Avatar | |
parent | Allow moving an avatar as part of a linkset using llSetLinkPrimitiveParams. T... (diff) | |
parent | Bug fix: wrong name of requester in local friendship offer. (diff) | |
download | opensim-SC-04b60aa49067060779cd541e9a06ad947bfecd08.zip opensim-SC-04b60aa49067060779cd541e9a06ad947bfecd08.tar.gz opensim-SC-04b60aa49067060779cd541e9a06ad947bfecd08.tar.bz2 opensim-SC-04b60aa49067060779cd541e9a06ad947bfecd08.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 5 |
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 4c01985..c6f8b88 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -504,7 +504,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
504 | UUID principalID = new UUID(im.fromAgentID); | 504 | UUID principalID = new UUID(im.fromAgentID); |
505 | UUID friendID = new UUID(im.toAgentID); | 505 | UUID friendID = new UUID(im.toAgentID); |
506 | 506 | ||
507 | m_log.DebugFormat("[FRIENDS]: {0} offered friendship to {1}", principalID, friendID); | 507 | m_log.DebugFormat("[FRIENDS]: {0} ({1}) offered friendship to {2}", principalID, im.fromAgentName, friendID); |
508 | 508 | ||
509 | // This user wants to be friends with the other user. | 509 | // This user wants to be friends with the other user. |
510 | // Let's add the relation backwards, in case the other is not online | 510 | // Let's add the relation backwards, in case the other is not online |
@@ -522,6 +522,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
522 | im.imSessionID = im.fromAgentID; | 522 | im.imSessionID = im.fromAgentID; |
523 | 523 | ||
524 | // Try the local sim | 524 | // Try the local sim |
525 | UserAccount account = UserAccountService.GetUserAccount(Scene.RegionInfo.ScopeID, agentID); | ||
526 | im.fromAgentName = (account == null) ? "Unknown" : account.FirstName + " " + account.LastName; | ||
527 | |||
525 | if (LocalFriendshipOffered(friendID, im)) | 528 | if (LocalFriendshipOffered(friendID, im)) |
526 | return; | 529 | return; |
527 | 530 | ||