Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit c8e2a1ffe1c6a9bd6946449d147125cc8fb7047a Author: Wim <wim@42.be> Date: Thu Jun 15 22:45:34 2017 +0000 Fix incorrect behaviour of EditDisable (mattermost). Fixes #197 diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 31c8b60..3db880b 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -1416 +1419 @@ func (b *Bmattermost) handleMatterClient(mchan chan *MMMessage) {   b.Remote <- config.Message{Username: "system", Text: message.Text, Channel: message.Channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE}   continue   } + if (message.Raw.Event == "post_edited") && b.Config.EditDisable { + continue + }   // do not post our own messages back to irc   // only listen to message from our team   if (message.Raw.Event == "posted" || message.Raw.Event == "post_edited") &&