[core] Fix: PRIVMSG does not contain "login"-tag

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-12-23 15:06:45 +01:00
parent 250a07f5b8
commit b1a41ac70a
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

2
irc.go
View file

@ -334,7 +334,7 @@ func (i ircHandler) handleTwitchPrivmsg(m *irc.Message) {
fields := plugins.FieldCollectionFromData(map[string]interface{}{
"bits": bits,
"channel": i.getChannel(m), // Compatibility to plugins.DeriveChannel
"user": m.Tags["login"], // Compatibility to plugins.DeriveUser
"user": m.User, // Compatibility to plugins.DeriveUser
})
log.WithFields(log.Fields(fields.Data())).Info("User spent bits in chat message")