From e5989adf92cd5ea007b5e7d50580579f8581fee2 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 6 Mar 2018 21:34:55 +0100 Subject: Add support for NoSendJoinPart. Closes #382 --- bridge/mattermost/mattermost.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/mattermost/mattermost.go') 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 -- cgit v1.2.3