From 67f625761785bdd1daf7101668f4853adacdd694 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 2 Feb 2018 21:04:43 +0100 Subject: Add ShowTopicChange option. Allow/disable topic change messages (currently only from slack). Closes #353 --- gateway/gateway.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gateway/gateway.go') 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") -- cgit v1.2.3