Fix: Set channel for more events

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-06-28 13:31:37 +02:00
parent f295ade136
commit 8a37343127
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -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]
}
}