5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-20 05:32:32 +00:00

Fix incorrect behaviour of EditDisable (mattermost). Fixes #197

This commit is contained in:
Wim 2017-06-15 22:45:34 +02:00
parent 5636eaca6d
commit 511f653e6e

View File

@ -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} b.Remote <- config.Message{Username: "system", Text: message.Text, Channel: message.Channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE}
continue continue
} }
if (message.Raw.Event == "post_edited") && b.Config.EditDisable {
continue
}
// do not post our own messages back to irc // do not post our own messages back to irc
// only listen to message from our team // only listen to message from our team
if (message.Raw.Event == "posted" || message.Raw.Event == "post_edited") && if (message.Raw.Event == "posted" || message.Raw.Event == "post_edited") &&