From 8e2f1f649a0968a949848ef518dd5b0d01798ad1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 9 Oct 2021 14:25:40 +0200 Subject: [PATCH] [core] Remove unused subscribed_months field from subgifts Signed-off-by: Knut Ahlers --- irc.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/irc.go b/irc.go index 3bd129a..c1154c1 100644 --- a/irc.go +++ b/irc.go @@ -296,12 +296,11 @@ func (i ircHandler) handleTwitchUsernotice(m *irc.Message) { case "subgift", "anonsubgift": log.WithFields(log.Fields{ - "channel": i.getChannel(m), - "from": m.Tags["login"], - "gifted_months": m.Tags["msg-param-gift-months"], - "subscribed_months": m.Tags["msg-param-cumulative-months"], - "plan": m.Tags["msg-param-sub-plan"], - "to": m.Tags["msg-param-recipient-user-name"], + "channel": i.getChannel(m), + "from": m.Tags["login"], + "gifted_months": m.Tags["msg-param-gift-months"], + "plan": m.Tags["msg-param-sub-plan"], + "to": m.Tags["msg-param-recipient-user-name"], }).Info("User gifted a sub") go handleMessage(i.c, m, eventTypeSubgift, nil)