4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-27 18:09:26 +00:00

Launch every account only once. Fixes #48

This commit is contained in:
Wim
2016-10-23 22:23:20 +02:00
parent 545377742c
commit e93847a95e
2 changed files with 6 additions and 8 deletions

View File

@ -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 {