Clear message on empty resub

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-07-21 14:08:20 +02:00
parent 276df367d7
commit 10a98e4e70
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

5
irc.go
View file

@ -263,6 +263,11 @@ func (ircHandler) handleTwitchUsernotice(m *irc.Message) {
"total": m.Tags["msg-param-cumulative-months"],
}
if fields["message"] == m.Params[0] {
// Empty resub-messages will cause the message to be the channel name
delete(fields, "message")
}
// Update store
strDisplayName := string(displayName)
var duration int64