diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 12 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 1 |
2 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index f561d97..6bac468 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3005,7 +3005,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3005 | // client is for a root or child agent. | 3005 | // client is for a root or child agent. |
3006 | client.SceneAgent = sp; | 3006 | client.SceneAgent = sp; |
3007 | 3007 | ||
3008 | // Cache the user's name | 3008 | // This is currently also being done earlier in NewUserConnection for real users to see if this |
3009 | // resolves problems where HG agents are occasionally seen by others as "Unknown user" in chat and other | ||
3010 | // places. However, we still need to do it here for NPCs. | ||
3009 | CacheUserName(sp, aCircuit); | 3011 | CacheUserName(sp, aCircuit); |
3010 | 3012 | ||
3011 | EventManager.TriggerOnNewClient(client); | 3013 | EventManager.TriggerOnNewClient(client); |
@@ -3029,7 +3031,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3029 | { | 3031 | { |
3030 | string first = aCircuit.firstname, last = aCircuit.lastname; | 3032 | string first = aCircuit.firstname, last = aCircuit.lastname; |
3031 | 3033 | ||
3032 | if (sp.PresenceType == PresenceType.Npc) | 3034 | if (sp != null && sp.PresenceType == PresenceType.Npc) |
3033 | { | 3035 | { |
3034 | UserManagementModule.AddUser(aCircuit.AgentID, first, last); | 3036 | UserManagementModule.AddUser(aCircuit.AgentID, first, last); |
3035 | } | 3037 | } |
@@ -3942,8 +3944,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
3942 | CapsModule.SetAgentCapsSeeds(agent); | 3944 | CapsModule.SetAgentCapsSeeds(agent); |
3943 | } | 3945 | } |
3944 | } | 3946 | } |
3945 | } | ||
3946 | 3947 | ||
3948 | // Try caching an incoming user name much earlier on to see if this helps with an issue | ||
3949 | // where HG users are occasionally seen by others as "Unknown User" because their UUIDName | ||
3950 | // request for the HG avatar appears to trigger before the user name is cached. | ||
3951 | CacheUserName(null, agent); | ||
3952 | } | ||
3947 | 3953 | ||
3948 | if (CapsModule != null) | 3954 | if (CapsModule != null) |
3949 | { | 3955 | { |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 5184585..83bd3fb 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1550,6 +1550,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1550 | // Create child agents in neighbouring regions | 1550 | // Create child agents in neighbouring regions |
1551 | if (openChildAgents && !IsChildAgent) | 1551 | if (openChildAgents && !IsChildAgent) |
1552 | { | 1552 | { |
1553 | // Remember in HandleUseCircuitCode, we delayed this to here | ||
1553 | SendInitialDataToMe(); | 1554 | SendInitialDataToMe(); |
1554 | 1555 | ||
1555 | IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); | 1556 | IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); |