diff options
author | Wim <wim@42.be> | 2018-02-02 21:04:43 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-02 21:08:13 +0100 |
commit | 67f625761785bdd1daf7101668f4853adacdd694 (patch) | |
tree | e37d7c7673aa3d0fcb9b5d68af517dfe41b11ecc /gateway | |
parent | 169c614489d34d282f814967e252d5630dc9ea9e (diff) | |
download | matterbridge-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')
-rw-r--r-- | gateway/gateway.go | 3 |
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") |