mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
[core] Fix: PRIVMSG does not contain "login"-tag
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
250a07f5b8
commit
b1a41ac70a
1 changed files with 1 additions and 1 deletions
2
irc.go
2
irc.go
|
@ -334,7 +334,7 @@ func (i ircHandler) handleTwitchPrivmsg(m *irc.Message) {
|
||||||
fields := plugins.FieldCollectionFromData(map[string]interface{}{
|
fields := plugins.FieldCollectionFromData(map[string]interface{}{
|
||||||
"bits": bits,
|
"bits": bits,
|
||||||
"channel": i.getChannel(m), // Compatibility to plugins.DeriveChannel
|
"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")
|
log.WithFields(log.Fields(fields.Data())).Info("User spent bits in chat message")
|
||||||
|
|
Loading…
Reference in a new issue