mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[core] Remove unused subscribed_months field from subgifts
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3ddcffafbc
commit
8e2f1f649a
1 changed files with 5 additions and 6 deletions
11
irc.go
11
irc.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue