From b812ed40e22d2155701f45f0a5fba465e1c51762 Mon Sep 17 00:00:00 2001 From: Ben Cartwright-Cox Date: Mon, 28 Sep 2020 00:46:01 +0100 Subject: fix(tvl-ebooks): Fix bug where Cynthia was not correctly supressed Change-Id: Ic94d69e5e9dbe33a29dc00a3f0d9e848952dd1a0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2011 Tested-by: BuildkiteCI Reviewed-by: tazjin --- fun/tvl-ebooks/mkov-engine/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fun/tvl-ebooks/mkov-engine/main.go b/fun/tvl-ebooks/mkov-engine/main.go index 64742fb3d6..f7894a10b3 100644 --- a/fun/tvl-ebooks/mkov-engine/main.go +++ b/fun/tvl-ebooks/mkov-engine/main.go @@ -80,9 +80,9 @@ func main() { func generateMesasge(msg incomingIRC, redisc *redis.Client) string { text := msg.Params[1] - username := msg.Name - supressionUsernames[strings.ToLower(username)] = true - supressionUsernames[strings.ToLower(username)+":"] = true + username := strings.ToLower(msg.Name) + supressionUsernames[username] = true + supressionUsernames[username+":"] = true text = strings.ToLower(text) text = strings.Replace(text, ",", "", -1) -- cgit 1.4.1