summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost/mattermost.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-06-15 22:45:34 +0200
committerWim <wim@42.be>2017-06-15 22:45:34 +0200
commit511f653e6ea357a0094794d23e242a84f9f6ccb6 (patch)
treedc72764ab53360c0f4e7c0aa4dbe3b52d421c173 /bridge/mattermost/mattermost.go
parent5636eaca6dbc883660b90ece856ea08ad4ba3b1f (diff)
downloadmatterbridge-msglm-511f653e6ea357a0094794d23e242a84f9f6ccb6.tar.gz
matterbridge-msglm-511f653e6ea357a0094794d23e242a84f9f6ccb6.tar.bz2
matterbridge-msglm-511f653e6ea357a0094794d23e242a84f9f6ccb6.zip
Fix incorrect behaviour of EditDisable (mattermost). Fixes #197
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r--bridge/mattermost/mattermost.go3
1 files changed, 3 insertions, 0 deletions
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") &&