summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/config/config.go2
-rw-r--r--bridge/slack/slack.go3
2 files changed, 5 insertions, 0 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index af3bf036..fdb6e55c 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -11,6 +11,7 @@ import (
const (
EVENT_JOIN_LEAVE = "join_leave"
+ EVENT_TOPIC_CHANGE = "topic_change"
EVENT_FAILURE = "failure"
EVENT_REJOIN_CHANNELS = "rejoin_channels"
EVENT_USER_ACTION = "user_action"
@@ -88,6 +89,7 @@ type Protocol struct {
RemoteNickFormat string // all protocols
Server string // IRC,mattermost,XMPP,discord
ShowJoinPart bool // all protocols
+ ShowTopicChange bool // slack
ShowEmbeds bool // discord
SkipTLSVerify bool // IRC, mattermost
StripNick bool // all protocols
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 {