summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost/mattermost.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-10-23 22:23:20 +0200
committerWim <wim@42.be>2016-10-23 22:23:20 +0200
commite93847a95ed984837128b468cc3ab16702843095 (patch)
tree153b1d9d0f80029a565739dc333aa64ea9d77816 /bridge/mattermost/mattermost.go
parent545377742c268f1193246a4005c07b0d7a516eaa (diff)
downloadmatterbridge-msglm-e93847a95ed984837128b468cc3ab16702843095.tar.gz
matterbridge-msglm-e93847a95ed984837128b468cc3ab16702843095.tar.bz2
matterbridge-msglm-e93847a95ed984837128b468cc3ab16702843095.zip
Launch every account only once. Fixes #48
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r--bridge/mattermost/mattermost.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 2a9749d2..685d2929 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -106,10 +106,7 @@ func (b *Bmattermost) Protocol() string {
func (b *Bmattermost) Send(msg config.Message) error {
flog.Debugf("Receiving %#v", msg)
- if msg.FullOrigin != b.FullOrigin() {
- return b.SendType(msg.Username, msg.Text, msg.Channel, "")
- }
- return nil
+ return b.SendType(msg.Username, msg.Text, msg.Channel, "")
}
func (b *Bmattermost) SendType(nick string, message string, channel string, mtype string) error {