mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
Fix: Set channel for more events
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f295ade136
commit
8a37343127
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ func formatMessage(tplString string, m *irc.Message, r *Rule, fields map[string]
|
|||
compiledFields["msg"] = m
|
||||
compiledFields["username"] = m.User
|
||||
|
||||
if m.Command == "PRIVMSG" && len(m.Params) > 0 {
|
||||
if len(m.Params) > 0 {
|
||||
compiledFields["channel"] = m.Params[0]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue