Skip to content

Commit

Permalink
Move attribution higher so the check can work on two payload received…
Browse files Browse the repository at this point in the history
… around the same time
  • Loading branch information
vabd committed Oct 25, 2018
1 parent 41cd6c6 commit a16b7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -164,8 +166,6 @@ func (c *Cli) sendNotice(data types.SCSData) (err error) {
}
}

c.prevMsgs[data.Number] = data.Message

logEntry.Debug("Notice sent")

return
Expand Down

0 comments on commit a16b7d6

Please sign in to comment.