mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* Moved SendNameReply to ClientView
* Removed unused LoginService * Minor renames on BinaryStreamHandler
This commit is contained in:
@@ -55,20 +55,17 @@ namespace OpenSim.Framework.Communications
|
||||
#region Packet Handlers
|
||||
public void HandleUUIDNameRequest(LLUUID uuid, IClientAPI remote_client)
|
||||
{
|
||||
Encoding enc = Encoding.ASCII;
|
||||
UserProfileData profileData = this.UserServer.GetUserProfile(uuid);
|
||||
if (profileData != null)
|
||||
{
|
||||
UUIDNameReplyPacket packet = new UUIDNameReplyPacket();
|
||||
packet.UUIDNameBlock = new UUIDNameReplyPacket.UUIDNameBlockBlock[1];
|
||||
packet.UUIDNameBlock[0] = new UUIDNameReplyPacket.UUIDNameBlockBlock();
|
||||
packet.UUIDNameBlock[0].ID = profileData.UUID;
|
||||
packet.UUIDNameBlock[0].FirstName = enc.GetBytes(profileData.username + "\0");
|
||||
packet.UUIDNameBlock[0].LastName = enc.GetBytes(profileData.surname +"\0");
|
||||
remote_client.OutPacket((Packet)packet);
|
||||
}
|
||||
|
||||
LLUUID profileId = profileData.UUID;
|
||||
string firstname = profileData.username;
|
||||
string lastname = profileData.surname;
|
||||
|
||||
remote_client.SendNameReply(profileId, firstname, lastname);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user