Remove double trigger on web listener
This commit is contained in:
parent
f37290d867
commit
4560844383
2 changed files with 16 additions and 8 deletions
|
@ -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.015")]
|
||||
[assembly: AssemblyFileVersion("5.2.016")]
|
||||
[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.015";
|
||||
public static string BotVer = "5.2.016";
|
||||
public static string GitPassword
|
||||
{
|
||||
get
|
||||
|
|
20
Program.cs
20
Program.cs
|
@ -290,9 +290,13 @@ namespace Bot
|
|||
{
|
||||
try
|
||||
{
|
||||
Console.WriteLine("Plugin [" + prog.ProgramName + "] found (" + fi.FullName + ") loaded and activated");
|
||||
prog.run(client, MH, CommandRegistry.Instance);
|
||||
g_ZPrograms.Add(prog);
|
||||
if (!g_ZPrograms.Contains(prog))
|
||||
{
|
||||
|
||||
Console.WriteLine("Plugin [" + prog.ProgramName + "] found (" + fi.FullName + ") loaded and activated");
|
||||
prog.run(client, MH, CommandRegistry.Instance);
|
||||
g_ZPrograms.Add(prog);
|
||||
}
|
||||
}
|
||||
catch (Exception e) { }
|
||||
}
|
||||
|
@ -307,9 +311,13 @@ namespace Bot
|
|||
{
|
||||
try
|
||||
{
|
||||
Console.WriteLine("Plugin [" + prog.ProgramName + "] found (" + Assembly.GetExecutingAssembly().FullName + ") loaded and activated");
|
||||
prog.run(client, MH, CommandRegistry.Instance);
|
||||
g_ZPrograms.Add(prog);
|
||||
if (!g_ZPrograms.Contains(prog))
|
||||
{
|
||||
|
||||
Console.WriteLine("Plugin [" + prog.ProgramName + "] found (" + Assembly.GetExecutingAssembly().FullName + ") loaded and activated");
|
||||
prog.run(client, MH, CommandRegistry.Instance);
|
||||
g_ZPrograms.Add(prog);
|
||||
}
|
||||
}
|
||||
catch (Exception e) { }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue