diff options
author | lbsa71 | 2007-07-13 07:19:00 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-13 07:19:00 +0000 |
commit | a0ac1f06e62bdfcf08264c8e89fb4e42a2d1f5d6 (patch) | |
tree | 6506411c17915cbc94fee8d115c0d4975dca0531 /OpenSim/Framework/Communications | |
parent | * Fixing compiler warnings in an attempt to reduce them back down to zero. (diff) | |
download | opensim-SC-a0ac1f06e62bdfcf08264c8e89fb4e42a2d1f5d6.zip opensim-SC-a0ac1f06e62bdfcf08264c8e89fb4e42a2d1f5d6.tar.gz opensim-SC-a0ac1f06e62bdfcf08264c8e89fb4e42a2d1f5d6.tar.bz2 opensim-SC-a0ac1f06e62bdfcf08264c8e89fb4e42a2d1f5d6.tar.xz |
* Moved SendNameReply to ClientView
* Removed unused LoginService
* Minor renames on BinaryStreamHandler
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/CommunicationsManager.cs | 17 |
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 | } |