summaryrefslogtreecommitdiffstats
path: root/wat/integration.go
diff options
context:
space:
mode:
authorPratyush Desai2024-10-10 00:00:50 +0200
committerPratyush Desai2024-10-10 00:00:50 +0200
commite300f7137055a260c522fe546a75e528533cf812 (patch)
tree0bee2f4afa0a13c731d3cf7724c91b47f7772a8a /wat/integration.go
parentc4ff70da702f47e7d5499778ad791e0c8d9812aa (diff)
parent5ce4d4bfe461fff3581b6a955ccf9126b541f4dd (diff)
downloadwatbot-e300f7137055a260c522fe546a75e528533cf812.tar.gz
watbot-e300f7137055a260c522fe546a75e528533cf812.tar.bz2
watbot-e300f7137055a260c522fe546a75e528533cf812.zip
Merge pull request 'Lower nickname in Jeopardy cashout' (#25) from jeopardylower into master
Reviewed-on: https://git.com.de/LibertaCasa/watbot/pulls/25
Diffstat (limited to 'wat/integration.go')
-rw-r--r--wat/integration.go2
1 files changed, 1 insertions, 1 deletions
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