diff --git a/Assembly/ASMInfo.cs b/Assembly/ASMInfo.cs index 1f083ff..23c5093 100644 --- a/Assembly/ASMInfo.cs +++ b/Assembly/ASMInfo.cs @@ -6,7 +6,7 @@ using System.Reflection; [assembly: AssemblyCompany("ZNI")] [assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)] [assembly: AssemblyCopyright("© 2020 Tara Piccari")] -[assembly: AssemblyFileVersion("5.2.013")] +[assembly: AssemblyFileVersion("5.2.014")] [assembly: AssemblyDescription("Second Life Bot - BotCore5")] @@ -15,7 +15,7 @@ namespace Bot.Assemble public class ASMInfo { public static string BotName = "ZBotCore"; - public static string BotVer = "5.2.013"; + public static string BotVer = "5.2.014"; public static string GitPassword { get diff --git a/Program.cs b/Program.cs index 60b832f..1de71f5 100644 --- a/Program.cs +++ b/Program.cs @@ -352,12 +352,8 @@ namespace Bot client.Self.RetrieveInstantMessages(); if (client.Network.Connected == false) g_iIsRunning = false; // Quit the program and restart immediately! Thread.Sleep(2000); - DirectoryInfo lp = new DirectoryInfo("update"); - - if (lp.Exists) g_iIsRunning = false; - if (conf.ConfigFor == "Main") { msg(MessageHandler.Destinations.DEST_LOCAL, UUID.Zero, "Alert: Main.json is not fully initialized. Setting default values"); @@ -384,18 +380,15 @@ namespace Bot Flavor = conf.ConfigFor; } - - registry = CommandRegistry.Instance; - registry.LocateCommands(); - //msg(MessageHandler.Destinations.DEST_LOCAL, UUID.Zero, "Commands found: " + registry.Cmds.Count.ToString()); - GroupsCache = new Dictionary(); - ReloadGroupsCache(); if (startupSeq) { registry = CommandRegistry.Instance; + registry.LocateCommands(); + GroupsCache = new Dictionary(); + ReloadGroupsCache(); //ReloadGroupsCache(); try {