From 5ce4d4bfe461fff3581b6a955ccf9126b541f4dd Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Wed, 9 Oct 2024 23:36:45 +0200 Subject: Lower nickname in Jeopardy cashout Align with GetTarget() which is used in games to have consistent handling of nicknames regardless of their casing. Signed-off-by: Georg Pfuetzenreuter --- wat/integration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wat') diff --git a/wat/integration.go b/wat/integration.go index 2b2329e..f053221 100644 --- a/wat/integration.go +++ b/wat/integration.go @@ -102,7 +102,7 @@ func (w *WatIntegration) Jeopardy(m *irc.Message, msgargs []string) { // host = we could use some WHO logic to find the host, but assuming nickname lookup to be sufficient here // create = based on the above, maybe rather not create Watbot players based on only a nick? // but it expects someone to have played with Watbot before to be eligible for Jeopardy cashout .. - player := w.db.User(name, "", false) + player := w.db.User(strings.ToLower(name), "", false) if player.Nick == "" { fmt.Printf("Player %s does not exist in Watbot, skipping cashout.\n", name) continue -- cgit v1.2.3