Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 99ba18b5f751fb36acf04112e6147d6a3c6acf5f Author: Wim <wim@42.be> Date: Mon Apr 03 22:18:29 2017 +0000 Fix join/leave regression (irc) diff --git a/gateway/gateway.go b/gateway/gateway.go index af21a22..4c2f746 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -1736 +17310 @@ func (gw *Gateway) getDestChannel(msg *config.Message, dest bridge.Bridge) []con  }    func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) { + // only relay join/part when configged + if msg.Event == config.EVENT_JOIN_LEAVE && !gw.Bridges[dest.Account].Config.ShowJoinPart { + return + }   // broadcast to every out channel (irc QUIT)   if msg.Channel == "" && msg.Event != config.EVENT_JOIN_LEAVE {   log.Debug("empty channel")