aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons/Groups
diff options
context:
space:
mode:
authorMelanie2013-07-24 04:45:07 +0100
committerMelanie2013-07-24 04:45:07 +0100
commite82d4154a2e348e4a38f01cb1877878c94569bba (patch)
tree7b27e6d30d04f6089fd17d5779cfb0a81e50d508 /OpenSim/Addons/Groups
parentMerge branch 'master' into careminster (diff)
parentFor unknown user issue, bump GUN7 to GUN8 and UMMAU3 to UMMAU4 to assess what... (diff)
downloadopensim-SC_OLD-e82d4154a2e348e4a38f01cb1877878c94569bba.zip
opensim-SC_OLD-e82d4154a2e348e4a38f01cb1877878c94569bba.tar.gz
opensim-SC_OLD-e82d4154a2e348e4a38f01cb1877878c94569bba.tar.bz2
opensim-SC_OLD-e82d4154a2e348e4a38f01cb1877878c94569bba.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs OpenSim/Region/Framework/Scenes/ScenePresence.cs OpenSim/Region/Physics/Manager/PhysicsActor.cs OpenSim/Region/Physics/Manager/PhysicsScene.cs
Diffstat (limited to 'OpenSim/Addons/Groups')
-rw-r--r--OpenSim/Addons/Groups/GroupsModule.cs21
1 files changed, 10 insertions, 11 deletions
diff --git a/OpenSim/Addons/Groups/GroupsModule.cs b/OpenSim/Addons/Groups/GroupsModule.cs
index 82e2d6f..69d03a9 100644
--- a/OpenSim/Addons/Groups/GroupsModule.cs
+++ b/OpenSim/Addons/Groups/GroupsModule.cs
@@ -1402,19 +1402,18 @@ namespace OpenSim.Groups
1402 if (m_debugEnabled) m_log.DebugFormat("[Groups]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); 1402 if (m_debugEnabled) m_log.DebugFormat("[Groups]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
1403 1403
1404 // TODO: All the client update functions need to be reexamined because most do too much and send too much stuff 1404 // TODO: All the client update functions need to be reexamined because most do too much and send too much stuff
1405 UserAccount account = m_sceneList[0].UserAccountService.GetUserAccount(remoteClient.Scene.RegionInfo.ScopeID, dataForAgentID); 1405 string firstname = "Unknown", lastname = "Unknown";
1406 string firstname, lastname; 1406 string name = m_UserManagement.GetUserName(dataForAgentID);
1407 if (account != null) 1407 if (!string.IsNullOrEmpty(name))
1408 {
1409 firstname = account.FirstName;
1410 lastname = account.LastName;
1411 }
1412 else
1413 { 1408 {
1414 firstname = "Unknown"; 1409 string[] parts = name.Split(new char[] { ' ' });
1415 lastname = "Unknown"; 1410 if (parts.Length >= 2)
1411 {
1412 firstname = parts[0];
1413 lastname = parts[1];
1414 }
1416 } 1415 }
1417 1416
1418 remoteClient.SendAgentDataUpdate(dataForAgentID, activeGroupID, firstname, 1417 remoteClient.SendAgentDataUpdate(dataForAgentID, activeGroupID, firstname,
1419 lastname, activeGroupPowers, activeGroupName, 1418 lastname, activeGroupPowers, activeGroupName,
1420 activeGroupTitle); 1419 activeGroupTitle);