aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorMelanie2011-01-02 01:29:22 +0100
committerMelanie2011-01-02 01:29:22 +0100
commit5432dfd53a19456c28f37379cd89a888d2c615d0 (patch)
tree270303b370acee1b8e90e3854ca300375501797b /OpenSim/Region/CoreModules/Avatar
parentFix child agent scoping (diff)
downloadopensim-SC-5432dfd53a19456c28f37379cd89a888d2c615d0.zip
opensim-SC-5432dfd53a19456c28f37379cd89a888d2c615d0.tar.gz
opensim-SC-5432dfd53a19456c28f37379cd89a888d2c615d0.tar.bz2
opensim-SC-5432dfd53a19456c28f37379cd89a888d2c615d0.tar.xz
Allow cross-scope friendships to work, and also allow other cross scope name
resolution
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 613a054..3148871 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -489,7 +489,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
489 im.imSessionID = im.fromAgentID; 489 im.imSessionID = im.fromAgentID;
490 490
491 // Try the local sim 491 // Try the local sim
492 UserAccount account = UserAccountService.GetUserAccount(Scene.RegionInfo.ScopeID, agentID); 492 UserAccount account = UserAccountService.GetUserAccount(UUID.Zero, agentID);
493 im.fromAgentName = (account == null) ? "Unknown" : account.FirstName + " " + account.LastName; 493 im.fromAgentName = (account == null) ? "Unknown" : account.FirstName + " " + account.LastName;
494 494
495 if (LocalFriendshipOffered(friendID, im)) 495 if (LocalFriendshipOffered(friendID, im))
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs
index 496f2ab..1b53a42 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs
@@ -116,7 +116,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
116 if (!UUID.TryParse(request["ToID"].ToString(), out toID)) 116 if (!UUID.TryParse(request["ToID"].ToString(), out toID))
117 return FailureResult(); 117 return FailureResult();
118 118
119 UserAccount account = m_FriendsModule.UserAccountService.GetUserAccount(m_FriendsModule.Scene.RegionInfo.ScopeID, fromID); 119 UserAccount account = m_FriendsModule.UserAccountService.GetUserAccount(UUID.Zero, fromID);
120 string name = (account == null) ? "Unknown" : account.FirstName + " " + account.LastName; 120 string name = (account == null) ? "Unknown" : account.FirstName + " " + account.LastName;
121 121
122 GridInstantMessage im = new GridInstantMessage(m_FriendsModule.Scene, fromID, name, toID, 122 GridInstantMessage im = new GridInstantMessage(m_FriendsModule.Scene, fromID, name, toID,