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:
parent
3a5e908111
commit
b812ed40e2
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue