diff options
author | Wim <wim@42.be> | 2018-03-06 21:34:55 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-03-06 21:35:47 +0100 |
commit | e5989adf92cd5ea007b5e7d50580579f8581fee2 (patch) | |
tree | 30592393820ff17d2e8f3cc9551cf83ce7d5f3e6 /bridge/mattermost | |
parent | 9e5da2f9d7384f2d17ed3bc18bcca7b7c07e6252 (diff) | |
download | matterbridge-msglm-e5989adf92cd5ea007b5e7d50580579f8581fee2.tar.gz matterbridge-msglm-e5989adf92cd5ea007b5e7d50580579f8581fee2.tar.bz2 matterbridge-msglm-e5989adf92cd5ea007b5e7d50580579f8581fee2.zip |
Add support for NoSendJoinPart. Closes #382
Diffstat (limited to 'bridge/mattermost')
-rw-r--r-- | bridge/mattermost/mattermost.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 334bb093..7a3806ab 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -400,6 +400,9 @@ func (b *Bmattermost) skipMessage(message *matterclient.Message) bool { if message.Type == "system_join_leave" || message.Type == "system_join_channel" || message.Type == "system_leave_channel" { + if b.GetBool("nosendjoinpart") { + return true + } b.Log.Debugf("Sending JOIN_LEAVE event from %s to gateway", b.Account) b.Remote <- config.Message{Username: "system", Text: message.Text, Channel: message.Channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE} return true |