diff --git a/src/matrix/matrix.go b/src/matrix/matrix.go index c078ce6..873eb93 100644 --- a/src/matrix/matrix.go +++ b/src/matrix/matrix.go @@ -136,6 +136,8 @@ func (c *Cli) sendNotice(data types.SCSData) (err error) { return } + c.prevMsgs[data.Number] = data.Message + // Load the template defined in the configuration file. The "message" name // used here is not important. tmpl, err := template.New("message").Parse(c.cfg.Notices.Pattern) @@ -164,8 +166,6 @@ func (c *Cli) sendNotice(data types.SCSData) (err error) { } } - c.prevMsgs[data.Number] = data.Message - logEntry.Debug("Notice sent") return