summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.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 /bridge/slack/slack.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 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 421cc6a3..f7001568 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -284,6 +284,9 @@ func (b *Bslack) handleSlack() {
msg.Event = config.EVENT_MSG_DELETE
msg.ID = "slack " + message.Raw.DeletedTimestamp
}
+ if message.Raw.SubType == "channel_topic" {
+ msg.Event = config.EVENT_TOPIC_CHANGE
+ }
// if we have a file attached, download it (in memory) and put a pointer to it in msg.Extra
if message.Raw.File != nil {