From a0ac1f06e62bdfcf08264c8e89fb4e42a2d1f5d6 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 13 Jul 2007 07:19:00 +0000 Subject: * Moved SendNameReply to ClientView * Removed unused LoginService * Minor renames on BinaryStreamHandler --- OpenSim/Region/ClientStack/ClientView.API.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 1c359c2..b47d95a 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs @@ -576,7 +576,6 @@ namespace OpenSim.Region.ClientStack this.OutPacket(inventoryReply); } - #region Appearance/ Wearables Methods /// @@ -1202,5 +1201,16 @@ namespace OpenSim.Region.ClientStack } #endregion + public void SendNameReply(LLUUID profileId, string firstname, string lastname) + { + Encoding enc = Encoding.ASCII; + UUIDNameReplyPacket packet = new UUIDNameReplyPacket(); + packet.UUIDNameBlock = new UUIDNameReplyPacket.UUIDNameBlockBlock[1]; + packet.UUIDNameBlock[0] = new UUIDNameReplyPacket.UUIDNameBlockBlock(); + packet.UUIDNameBlock[0].ID = profileId; + packet.UUIDNameBlock[0].FirstName = enc.GetBytes(firstname + "\0"); + packet.UUIDNameBlock[0].LastName = enc.GetBytes(lastname + "\0"); + OutPacket((Packet)packet); + } } } -- cgit v1.1