Add template function to normalize username

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-12-24 14:13:26 +01:00
parent f18e9c1612
commit 5fc593e08b
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -64,4 +64,6 @@ func init() {
return game, err return game, err
} }
messageFunctions["fixUsername"] = func(username string) string { return strings.TrimLeft(username, "@") }
} }