Add function name output to the disabled error

This commit is contained in:
Zontreck 2020-07-28 01:01:26 -07:00
parent 2496106f90
commit d6643237c2
2 changed files with 3 additions and 3 deletions

View file

@ -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.014")] [assembly: AssemblyFileVersion("5.4.015")]
[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.014"; public static string BotVer = "5.4.015";
public static string GitPassword public static string GitPassword
{ {
get get

View file

@ -230,7 +230,7 @@ namespace Bot.CommandSystem
{ {
if (MainConfiguration.Instance.DisabledCommands.Contains(cgX.Command)) if (MainConfiguration.Instance.DisabledCommands.Contains(cgX.Command))
{ {
BaseCommands.MH(source, user, "Error: That command is disabled"); BaseCommands.MH(source, user, "Function: '"+cgX.AssignedMethod.Name+"' associated with command '"+cgX.Command+"' is disabled by a administrator");
return; return;
} }
var ovj = Activator.CreateInstance(cgX.AssignedMethod.DeclaringType); var ovj = Activator.CreateInstance(cgX.AssignedMethod.DeclaringType);