aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 646e0e2..85f4ee5 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -925,6 +925,33 @@ 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 try
935 {
936 if (gm != null)
937 {
938 groupUUID = ControllingClient.ActiveGroupId;
939 GroupRecord record = gm.GetGroupRecord(groupUUID);
940 if (record != null)
941 GroupName = record.GroupName;
942 GroupMembershipData groupMembershipData = gm.GetMembershipData(groupUUID, m_uuid);
943 if (groupMembershipData != null)
944 groupPowers = groupMembershipData.GroupPowers;
945 }
946 ControllingClient.SendAgentDataUpdate(m_uuid, groupUUID, Firstname, Lastname, groupPowers, GroupName,
947 Grouptitle);
948 }
949 catch (Exception e)
950 {
951 m_log.Debug("[AGENTUPDATE]: " + e.ToString());
952 }
953 // ------------------------------------
954
928 if (ParentID == 0) 955 if (ParentID == 0)
929 { 956 {
930 // Moved this from SendInitialData to ensure that Appearance is initialized 957 // Moved this from SendInitialData to ensure that Appearance is initialized