* Test thy commits! (oops, sorry!)
parent
d8cbd173f5
commit
aaaa3c6835
|
@ -35,16 +35,18 @@ namespace OpenSim.Region.Environment.Modules
|
||||||
{
|
{
|
||||||
public class InstantMessageModule : IRegionModule
|
public class InstantMessageModule : IRegionModule
|
||||||
{
|
{
|
||||||
private List<Scene> m_scenes;
|
private List<Scene> m_scenes = new List<Scene>();
|
||||||
private LogBase m_log;
|
private LogBase m_log;
|
||||||
|
|
||||||
public void Initialise(Scene scene)
|
public void Initialise(Scene scene)
|
||||||
{
|
{
|
||||||
if (!m_scenes.Contains(scene))
|
if (!m_scenes.Contains(scene))
|
||||||
|
{
|
||||||
m_scenes.Add(scene);
|
m_scenes.Add(scene);
|
||||||
|
|
||||||
scene.EventManager.OnNewClient += OnNewClient;
|
scene.EventManager.OnNewClient += OnNewClient;
|
||||||
m_log = OpenSim.Framework.Console.MainLog.Instance;
|
m_log = OpenSim.Framework.Console.MainLog.Instance;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnNewClient(OpenSim.Framework.Interfaces.IClientAPI client)
|
void OnNewClient(OpenSim.Framework.Interfaces.IClientAPI client)
|
||||||
|
|
Loading…
Reference in New Issue