From eeccb7acd3599aef89a764f7d88af3a8c73c3347 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Wed, 24 Oct 2018 17:02:29 +0800 Subject: [PATCH] Fixed bug in msg/rmsg confusion. --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 1c388344..caa8da17 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -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 {