Fixed bug in msg/rmsg confusion.

This commit is contained in:
Patrick Connolly
2018-10-24 17:02:29 +08:00
parent 434184507a
commit eeccb7acd3

View File

@@ -286,7 +286,7 @@ func (b *Bslack) sendRTM(msg config.Message) (string, error) {
if msg.Extra != nil {
for _, rmsg := range helper.HandleExtra(&msg, b.General) {
messageOptions = b.prepareMessageOptions(rmsg)
messageOptions = append(messageOptions, slack.MsgOptionText(msg.Username+msg.Text, false))
messageOptions = append(messageOptions, slack.MsgOptionText(rmsg.Username+rmsg.Text, false))
_, _, err = b.sc.PostMessage(channelInfo.ID, messageOptions...)
if err != nil {