mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Remove all references to HttpServer from CommsManager (all incarnations)
Change all uses of the HttpServer properties to use the new singleton
This commit is contained in:
@@ -90,7 +90,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
{
|
||||
m_log.InfoFormat("[IRC-Bridge] Connecting region {0}", scene.RegionInfo.RegionName);
|
||||
if (!String.IsNullOrEmpty(m_password))
|
||||
scene.CommsManager.HttpServer.AddXmlRPCHandler("irc_admin", XmlRpcAdminMethod, false);
|
||||
MainServer.Instance.AddXmlRPCHandler("irc_admin", XmlRpcAdminMethod, false);
|
||||
m_region = new RegionState(scene, m_config);
|
||||
lock (m_regions) m_regions.Add(m_region);
|
||||
m_region.Open();
|
||||
@@ -121,7 +121,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
return;
|
||||
|
||||
if (!String.IsNullOrEmpty(m_password))
|
||||
scene.CommsManager.HttpServer.RemoveXmlRPCHandler("irc_admin");
|
||||
MainServer.Instance.RemoveXmlRPCHandler("irc_admin");
|
||||
|
||||
m_region.Close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user