diff options
Diffstat (limited to 'bridge/mattermost')
-rw-r--r-- | bridge/mattermost/mattermost.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 3274d81d..9d9990b2 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -190,9 +190,9 @@ func (b *Bmattermost) Send(msg config.Message) (string, error) { flog.Debugf("ERROR %#v", err) return "", err } - message = "uploaded a file: " + fi.Name + message = fi.Comment if b.Config.PrefixMessagesWithNick { - message = nick + "uploaded a file: " + fi.Name + message = nick + fi.Comment } res, err = b.mc.PostMessageWithFiles(b.mc.GetChannelId(channel, ""), message, []string{id}) } |