Esempio n. 1
0
        // -------- Functions --------

        /// <summary>
        /// Loads the IRC config from the given XML path.
        /// </summary>
        /// <param name="xmlFilePath">The path to the IRC config XML.</param>
        public void InitState1_LoadIrcConfig(string xmlFilePath)
        {
            this.ircConfig     = XmlLoader.ParseIrcConfig(xmlFilePath);
            this.sourceCommand = "[!@]" + this.ircConfig.Nick + @":?\s+source\s+(?<pluginName>\w+)";
        }
Esempio n. 2
0
        /// <summary>
        /// Loads the Plugins from the given XML path.
        /// The IRC config MUST be loaded first.
        /// </summary>
        /// <param name="xmlFilePath">The path to the plugin config XML.</param>
        /// <returns>True if load was successful, else false.</returns>
        public bool InitStage2_LoadPlugins(string xmlFilePath)
        {
            IList <AssemblyConfig> pluginList = XmlLoader.ParsePluginConfig(xmlFilePath);

            return(InitStage2_LoadPlugins(pluginList));
        }