summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-08-16 00:08:38 +0200
committerWim <wim@42.be>2016-08-20 18:08:57 +0200
commite11d786775cf64123227a44983067cc463e632f5 (patch)
tree1c26971dc864a6e0549f2b11964124ecd380261e /bridge/mattermost
parent889b6debc4f339975076668b6ab7d85f7dd08922 (diff)
downloadmatterbridge-msglm-e11d786775cf64123227a44983067cc463e632f5.tar.gz
matterbridge-msglm-e11d786775cf64123227a44983067cc463e632f5.tar.bz2
matterbridge-msglm-e11d786775cf64123227a44983067cc463e632f5.zip
Move nickformatting into bridge
Diffstat (limited to 'bridge/mattermost')
-rw-r--r--bridge/mattermost/mattermost.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 9dc0cebb..1371969e 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -95,11 +95,7 @@ func (b *Bmattermost) Name() string {
func (b *Bmattermost) Send(msg config.Message) error {
flog.mm.Infof("mattermost send %#v", msg)
if msg.Origin != "mattermost" {
- username := msg.Username + ": "
- if b.Config.Mattermost.RemoteNickFormat != "" {
- username = strings.Replace(b.Config.Mattermost.RemoteNickFormat, "{NICK}", msg.Username, -1)
- }
- return b.SendType(username, msg.Text, msg.Channel, "")
+ return b.SendType(msg.Username, msg.Text, msg.Channel, "")
}
return nil
}