summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-02 21:04:43 +0100
committerWim <wim@42.be>2018-02-02 21:08:13 +0100
commit67f625761785bdd1daf7101668f4853adacdd694 (patch)
treee37d7c7673aa3d0fcb9b5d68af517dfe41b11ecc /gateway/gateway.go
parent169c614489d34d282f814967e252d5630dc9ea9e (diff)
downloadmatterbridge-msglm-67f625761785bdd1daf7101668f4853adacdd694.tar.gz
matterbridge-msglm-67f625761785bdd1daf7101668f4853adacdd694.tar.bz2
matterbridge-msglm-67f625761785bdd1daf7101668f4853adacdd694.zip
Add ShowTopicChange option. Allow/disable topic change messages (currently only from slack). Closes #353
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 6e327686..93e5b5be 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -181,6 +181,9 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
if msg.Event == config.EVENT_JOIN_LEAVE && !gw.Bridges[dest.Account].Config.ShowJoinPart {
return brMsgIDs
}
+ if msg.Event == config.EVENT_TOPIC_CHANGE && !gw.Bridges[dest.Account].Config.ShowTopicChange {
+ return brMsgIDs
+ }
// broadcast to every out channel (irc QUIT)
if msg.Channel == "" && msg.Event != config.EVENT_JOIN_LEAVE {
log.Debug("empty channel")