From 561d6c1cdc58a2276f2b5388f87393c9d064ba84 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 28 May 2009 18:59:18 +0000 Subject: [PATCH] * Converts recently added OGSRadmin to IRegionModule because I cant be arsed figuring out Mono.Addins. --- .../Region/CoreModules/InterGrid/OGSRadmin.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs index 98710c608c..2d14b41ce0 100644 --- a/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs +++ b/OpenSim/Region/CoreModules/InterGrid/OGSRadmin.cs @@ -13,7 +13,7 @@ using OpenSim.Region.Framework.Scenes; namespace OpenSim.Region.CoreModules.InterGrid { - public class OGSRadmin : ISharedRegionModule + public class OGSRadmin : IRegionModule { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private readonly List m_scenes = new List(); @@ -27,6 +27,7 @@ namespace OpenSim.Region.CoreModules.InterGrid get { return "OGS Supporting RAdmin"; } } + public void Initialise(IConfigSource source) { m_settings = source; @@ -65,6 +66,21 @@ namespace OpenSim.Region.CoreModules.InterGrid #endregion + #region IRegionModule + + public void Initialise(Scene scene, IConfigSource source) + { + lock (m_scenes) + m_scenes.Add(scene); + } + + public bool IsSharedModule + { + get { return true; } + } + + #endregion + public XmlRpcResponse GridWideMessage(XmlRpcRequest req, IPEndPoint remoteClient) { XmlRpcResponse response = new XmlRpcResponse();