Fix error where command registry would throw a exception
This commit is contained in:
parent
6282c57643
commit
54ef1b63cb
2 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ using System.Reflection;
|
||||||
[assembly: AssemblyCompany("ZNI")]
|
[assembly: AssemblyCompany("ZNI")]
|
||||||
[assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)]
|
[assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)]
|
||||||
[assembly: AssemblyCopyright("(C) 2020 Tara Piccari")]
|
[assembly: AssemblyCopyright("(C) 2020 Tara Piccari")]
|
||||||
[assembly: AssemblyFileVersion("5.4.395")]
|
[assembly: AssemblyFileVersion("5.4.396")]
|
||||||
[assembly: AssemblyDescription("Second Life Bot - BotCore5")]
|
[assembly: AssemblyDescription("Second Life Bot - BotCore5")]
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ namespace Bot.Assemble
|
||||||
public class ASMInfo
|
public class ASMInfo
|
||||||
{
|
{
|
||||||
public static string BotName = "ZBotCore";
|
public static string BotName = "ZBotCore";
|
||||||
public static string BotVer = "5.4.395";
|
public static string BotVer = "5.4.396";
|
||||||
public static string GitPassword
|
public static string GitPassword
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -220,13 +220,13 @@ namespace Bot.CommandSystem
|
||||||
{
|
{
|
||||||
//Command is not disabled
|
//Command is not disabled
|
||||||
var ovj = Activator.CreateInstance(cg.AssignedMethod.DeclaringType);
|
var ovj = Activator.CreateInstance(cg.AssignedMethod.DeclaringType);
|
||||||
string[] args = new string[cmdStruct.Length - 1];
|
List<string> lArgs = new List<string>();
|
||||||
|
|
||||||
for(int i=1; i<= cmdStruct.Length; i++)
|
for(int i=1; i<= cmdStruct.Length; i++)
|
||||||
{
|
{
|
||||||
args[i - 1] = cmdStruct[i];
|
lArgs.Add(cmdStruct[i]);
|
||||||
}
|
}
|
||||||
|
string[] args = lArgs.ToArray();
|
||||||
//(UUID client, int level, string[] additionalArgs,
|
//(UUID client, int level, string[] additionalArgs,
|
||||||
//Destinations source,
|
//Destinations source,
|
||||||
//UUID agentKey, string agentName)
|
//UUID agentKey, string agentName)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue