From 80f1a28be90c53ea611ea43a0de014cda345770f Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Mon, 22 Dec 2025 23:51:08 -0700 Subject: [PATCH] Fixed a warning --- command/markov.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/markov.go b/command/markov.go index c7843c0..7a9622a 100644 --- a/command/markov.go +++ b/command/markov.go @@ -924,7 +924,7 @@ func selectBestNextWord(options []string, wordHistory []string) string { var fallbackOptions []string for _, option := range options { // Avoid repetition - if len(wordHistory) == 0 || strings.ToLower(wordHistory[len(wordHistory)-1]) != strings.ToLower(option) { + if len(wordHistory) == 0 || !strings.EqualFold(wordHistory[len(wordHistory)-1], option) { fallbackOptions = append(fallbackOptions, option) } }