예제 #1
0
        public void AddRegion(Scene scene)
        {
            if (!m_Enabled)
                return;

            m_server = new IRCServer(IPAddress.Parse("0.0.0.0"), m_Port, scene);
            m_server.OnNewIRCClient += m_server_OnNewIRCClient;
        }
예제 #2
0
//        private Scene m_scene;

        #region Implementation of IRegionModule

        public void Initialise(Scene scene, IConfigSource source)
        {
            if (null != source.Configs["IRCd"] &&
                source.Configs["IRCd"].GetBoolean("Enabled",false))
            {
                int portNo = source.Configs["IRCd"].GetInt("Port",6666);
//                m_scene = scene;
                m_server = new IRCServer(IPAddress.Parse("0.0.0.0"), portNo, scene);
                m_server.OnNewIRCClient += m_server_OnNewIRCClient;
            }
        }