summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-04-03 22:18:29 +0200
committerWim <wim@42.be>2017-04-03 22:18:29 +0200
commit33dffd5ea84890c85771a8ab759750192501f041 (patch)
treef06e827082a4fcbcc41fcf9b2ddac9672e69ecff /gateway
parent57176dadd43b02da2cc855c1ef02357007ae360e (diff)
downloadmatterbridge-msglm-33dffd5ea84890c85771a8ab759750192501f041.tar.gz
matterbridge-msglm-33dffd5ea84890c85771a8ab759750192501f041.tar.bz2
matterbridge-msglm-33dffd5ea84890c85771a8ab759750192501f041.zip
Fix join/leave regression (irc)v0.11.0-beta2
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index af21a22a..4c2f7463 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -173,6 +173,10 @@ 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")