[core] Remove unused subscribed_months field from subgifts

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-10-09 14:25:40 +02:00
parent 3ddcffafbc
commit 8e2f1f649a
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

11
irc.go
View file

@ -296,12 +296,11 @@ func (i ircHandler) handleTwitchUsernotice(m *irc.Message) {
case "subgift", "anonsubgift": case "subgift", "anonsubgift":
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"channel": i.getChannel(m), "channel": i.getChannel(m),
"from": m.Tags["login"], "from": m.Tags["login"],
"gifted_months": m.Tags["msg-param-gift-months"], "gifted_months": m.Tags["msg-param-gift-months"],
"subscribed_months": m.Tags["msg-param-cumulative-months"], "plan": m.Tags["msg-param-sub-plan"],
"plan": m.Tags["msg-param-sub-plan"], "to": m.Tags["msg-param-recipient-user-name"],
"to": m.Tags["msg-param-recipient-user-name"],
}).Info("User gifted a sub") }).Info("User gifted a sub")
go handleMessage(i.c, m, eventTypeSubgift, nil) go handleMessage(i.c, m, eventTypeSubgift, nil)