* refactor: call AddLLSDHandler directly via CommsManager

This commit is contained in:
Justin Clarke Casey
2009-01-06 14:30:50 +00:00
parent 2a4c4ceebb
commit 579f11b3b8
4 changed files with 8 additions and 15 deletions

View File

@@ -125,7 +125,8 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
m_log.Warn("[WORLD MAP]: JPEG Map location: http://" + m_scene.RegionInfo.ExternalEndPoint.Address.ToString() + ":" + m_scene.RegionInfo.HttpPort.ToString() + "/index.php?method=" + regionimage);
m_scene.AddHTTPHandler(regionimage, OnHTTPGetMapImage);
m_scene.AddLLSDHandler("/MAP/MapItems/" + m_scene.RegionInfo.RegionHandle.ToString(), HandleRemoteMapItemRequest);
m_scene.CommsManager.HttpServer.AddLLSDHandler(
"/MAP/MapItems/" + m_scene.RegionInfo.RegionHandle.ToString(), HandleRemoteMapItemRequest);
m_scene.EventManager.OnRegisterCaps += OnRegisterCaps;
m_scene.EventManager.OnNewClient += OnNewClient;