From 511f653e6ea357a0094794d23e242a84f9f6ccb6 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 15 Jun 2017 22:45:34 +0200 Subject: Fix incorrect behaviour of EditDisable (mattermost). Fixes #197 --- bridge/mattermost/mattermost.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge') diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 31c8b603..3db880ba 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -141,6 +141,9 @@ 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") && -- cgit v1.2.3