From 793813a6a69854c26ec5c64c6625db98c756a1cd Mon Sep 17 00:00:00 2001 From: Dalien Talbot Date: Sun, 18 Nov 2007 04:00:04 +0000 Subject: Added handler for MapNameRequest - OnMapNameRequest --- OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs') diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 0161928..4336eb4 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs @@ -611,6 +611,15 @@ namespace OpenSim.Region.ClientStack MapRequest.PositionData.MaxX, MapRequest.PositionData.MaxY); } break; + case PacketType.MapNameRequest: + MapNameRequestPacket map = (MapNameRequestPacket) Pack; + string mapName = UTF8Encoding.UTF8.GetString(map.NameData.Name, 0, + map.NameData.Name.Length - 1); + if (OnMapNameRequest != null) + { + OnMapNameRequest(this, mapName); + } + break; case PacketType.TeleportLandmarkRequest: TeleportLandmarkRequestPacket tpReq = (TeleportLandmarkRequestPacket) Pack; -- cgit v1.1