From d206c2d736b2753e006888015daa28076aab4d7d Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 11 Apr 2020 10:01:14 -0600 Subject: [PATCH] respect mixed case commands --- plugins/toki_pona.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/toki_pona.go b/plugins/toki_pona.go index 3a55637..0abc3bb 100644 --- a/plugins/toki_pona.go +++ b/plugins/toki_pona.go @@ -4038,6 +4038,7 @@ func (t *Toki) fix(msg string) (string, string) { // RespondText to hi events func (t *Toki) RespondText(c *gomatrix.Client, ev *gomatrix.Event, user, post string) { cmd, w := t.fix(post) + cmd = strings.ToLower(cmd) switch cmd { case "toki": if word, ok := TokiLang[w]; ok {