aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 7ff163b..70e7af5 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -925,6 +925,26 @@ namespace OpenSim.Region.Framework.Scenes
925 925
926 m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); 926 m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene);
927 927
928 UUID groupUUID = UUID.Zero;
929 string GroupName = string.Empty;
930 ulong groupPowers = 0;
931
932 // ----------------------------------
933 // Previous Agent Difference - AGNI sends an unsolicited AgentDataUpdate upon root agent status
934 if (gm != null)
935 {
936 groupUUID = ControllingClient.ActiveGroupId;
937 GroupRecord record = gm.GetGroupRecord(groupUUID);
938 if (record != null)
939 GroupName = record.GroupName;
940 GroupMembershipData groupMembershipData = gm.GetMembershipData(groupUUID, m_uuid);
941 if (groupMembershipData != null)
942 groupPowers = groupMembershipData.GroupPowers;
943 }
944 ControllingClient.SendAgentDataUpdate(m_uuid, groupUUID, Firstname, Lastname, groupPowers, GroupName,
945 Grouptitle);
946 // ------------------------------------
947
928 if (ParentID == 0) 948 if (ParentID == 0)
929 { 949 {
930 // Moved this from SendInitialData to ensure that Appearance is initialized 950 // Moved this from SendInitialData to ensure that Appearance is initialized