From e064c374778bec8cc69db172ea77eaa5e27e16d3 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Thu, 14 May 2026 21:37:50 -0500 Subject: [PATCH] Change equals to endswith as I think it's getting felted by the command prefix --- KfChatDotNetBot/Commands/ImageCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KfChatDotNetBot/Commands/ImageCommands.cs b/KfChatDotNetBot/Commands/ImageCommands.cs index 620fe84..59e5d33 100644 --- a/KfChatDotNetBot/Commands/ImageCommands.cs +++ b/KfChatDotNetBot/Commands/ImageCommands.cs @@ -321,7 +321,7 @@ public class GetRandomImage : ICommand CancellationToken ctx) { await using var db = new ApplicationDbContext(); - var untagged = message.MessageRawHtmlDecoded.Equals("untagged", StringComparison.CurrentCultureIgnoreCase); + var untagged = message.MessageRawHtmlDecoded.EndsWith("untagged", StringComparison.CurrentCultureIgnoreCase); var keyKnown = arguments.TryGetValue("key", out var keyGroup); var key = "everything"; if (keyKnown) key = keyGroup!.Value;