aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/CommunicationsManager.cs17
1 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
index ebc9632..550372f 100644
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ b/OpenSim/Framework/Communications/CommunicationsManager.cs
@@ -55,20 +55,17 @@ namespace OpenSim.Framework.Communications
55 #region Packet Handlers 55 #region Packet Handlers
56 public void HandleUUIDNameRequest(LLUUID uuid, IClientAPI remote_client) 56 public void HandleUUIDNameRequest(LLUUID uuid, IClientAPI remote_client)
57 { 57 {
58 Encoding enc = Encoding.ASCII;
59 UserProfileData profileData = this.UserServer.GetUserProfile(uuid); 58 UserProfileData profileData = this.UserServer.GetUserProfile(uuid);
60 if (profileData != null) 59 if (profileData != null)
61 { 60 {
62 UUIDNameReplyPacket packet = new UUIDNameReplyPacket(); 61 LLUUID profileId = profileData.UUID;
63 packet.UUIDNameBlock = new UUIDNameReplyPacket.UUIDNameBlockBlock[1]; 62 string firstname = profileData.username;
64 packet.UUIDNameBlock[0] = new UUIDNameReplyPacket.UUIDNameBlockBlock(); 63 string lastname = profileData.surname;
65 packet.UUIDNameBlock[0].ID = profileData.UUID; 64
66 packet.UUIDNameBlock[0].FirstName = enc.GetBytes(profileData.username + "\0"); 65 remote_client.SendNameReply(profileId, firstname, lastname);
67 packet.UUIDNameBlock[0].LastName = enc.GetBytes(profileData.surname +"\0"); 66 }
68 remote_client.OutPacket((Packet)packet);
69 }
70
71 } 67 }
68
72 #endregion 69 #endregion
73 } 70 }
74} 71}