about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Cartwright-Cox <tvl@Benjojo.co.uk>2020-09-27T23·46+0100
committerben <tvl@benjojo.co.uk>2020-09-27T23·48+0000
commitb812ed40e22d2155701f45f0a5fba465e1c51762 (patch)
treea2cb770f9bfbc498a7ee74b79015316204fc5781
parent3a5e908111f96241c20b7ff5d2229a6c2ee12464 (diff)
fix(tvl-ebooks): Fix bug where Cynthia was not correctly supressed r/1826
Change-Id: Ic94d69e5e9dbe33a29dc00a3f0d9e848952dd1a0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2011
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
-rw-r--r--fun/tvl-ebooks/mkov-engine/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/fun/tvl-ebooks/mkov-engine/main.go b/fun/tvl-ebooks/mkov-engine/main.go
index 64742fb3d662..f7894a10b36f 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)