From c56197a861bac6082f601ba9a975f509cdc69efe Mon Sep 17 00:00:00 2001 From: Amber Date: Fri, 13 Jun 2025 12:33:30 -0400 Subject: [PATCH] An assembly name which matches the start of a command name before a space would block out those commands if you didn't specify the assembly name they were in. Now if the command being looked for isn't found in the assembly go back to look across all the commands without specifying an assembly. In future, potentially should handle the commands being overloaded in this case but this is a fairly rare case only brought up due to killfeed prefixing its commands with killfeed. --- VCF.Core/Registry/CommandRegistry.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VCF.Core/Registry/CommandRegistry.cs b/VCF.Core/Registry/CommandRegistry.cs index 9d7a5bc..77e8ab2 100644 --- a/VCF.Core/Registry/CommandRegistry.cs +++ b/VCF.Core/Registry/CommandRegistry.cs @@ -233,12 +233,12 @@ public static CommandResult Handle(ICommandContext ctx, string input) } // Get command(s) based on input - CacheResult matchedCommand; + CacheResult matchedCommand = null; if (assemblyName != null) { matchedCommand = _cache.GetCommandFromAssembly(commandInput, assemblyName); } - else + if (matchedCommand == null || !matchedCommand.IsMatched) { matchedCommand = _cache.GetCommand(input); }