mirror of
https://github.com/Luzifer/twitch-manager.git
synced 2024-12-20 20:01:18 +00:00
Clear message on empty resub
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
276df367d7
commit
10a98e4e70
1 changed files with 5 additions and 0 deletions
5
irc.go
5
irc.go
|
@ -263,6 +263,11 @@ func (ircHandler) handleTwitchUsernotice(m *irc.Message) {
|
||||||
"total": m.Tags["msg-param-cumulative-months"],
|
"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
|
// Update store
|
||||||
strDisplayName := string(displayName)
|
strDisplayName := string(displayName)
|
||||||
var duration int64
|
var duration int64
|
||||||
|
|
Loading…
Reference in a new issue