private void ReadConfigFiles() { XmlLoader loader = new XmlLoader(this.logger); this.meetbotConfig = loader.ParseDefaultConfigFile(this.pluginDir); this.meetbotConfig.Validate(); IList <CommandDefinition> defs = loader.ParseDefaultFile(); if (string.IsNullOrEmpty(this.meetbotConfig.CommandConfigPath) == false) { using (FileStream reader = new FileStream(this.meetbotConfig.CommandConfigPath, FileMode.Open, FileAccess.Read)) { IList <CommandDefinition> userDefs = loader.ParseCommandFile(reader, false); foreach (CommandDefinition userDef in userDefs) { defs.Add(userDef); } } } this.cmdDefs = new CommandDefinitionCollection(defs); this.cmdDefs.InitStage1_ValidateDefinitions(); this.cmdDefs.InitStage2_FilterOutOverrides(); this.cmdDefs.InitStage3_BuildDictionaries(); }