From d6643237c2e328585e26245d04da4d4d16868c87 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Tue, 28 Jul 2020 01:01:26 -0700 Subject: [PATCH] Add function name output to the disabled error --- Assembly/ASMInfo.cs | 4 ++-- CommandSystem/CommandRegistry.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assembly/ASMInfo.cs b/Assembly/ASMInfo.cs index bfdd4ec..16891ce 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("(C) 2020 Tara Piccari")] -[assembly: AssemblyFileVersion("5.4.014")] +[assembly: AssemblyFileVersion("5.4.015")] [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.4.014"; + public static string BotVer = "5.4.015"; public static string GitPassword { get diff --git a/CommandSystem/CommandRegistry.cs b/CommandSystem/CommandRegistry.cs index 190a4e4..9c70e12 100644 --- a/CommandSystem/CommandRegistry.cs +++ b/CommandSystem/CommandRegistry.cs @@ -230,7 +230,7 @@ namespace Bot.CommandSystem { 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; } var ovj = Activator.CreateInstance(cgX.AssignedMethod.DeclaringType);