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 <mail@tazj.in>
This commit is contained in:
Ben Cartwright-Cox 2020-09-28 00:46:01 +01:00 committed by ben
parent 3a5e908111
commit b812ed40e2

View file

@ -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)