summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-08-27 00:00:02 +0200
committerWim <wim@42.be>2017-08-27 00:00:02 +0200
commit43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a (patch)
tree49194f529f7e0ddce497f8592f659b4e003d422e /bridge
parent7f9a400776e0000c84e6539a932027965098d6a3 (diff)
downloadmatterbridge-msglm-43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a.tar.gz
matterbridge-msglm-43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a.tar.bz2
matterbridge-msglm-43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a.zip
Handle leave/join events (slack). Closes #246
Diffstat (limited to 'bridge')
-rw-r--r--bridge/slack/slack.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index f16aa055..f2663029 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -237,6 +237,10 @@ func (b *Bslack) handleSlack() {
if message.Raw.SubType == "me_message" {
msg.Event = config.EVENT_USER_ACTION
}
+ if message.Raw.SubType == "channel_leave" || message.Raw.SubType == "channel_join" {
+ msg.Username = "system"
+ msg.Event = config.EVENT_JOIN_LEAVE
+ }
b.Remote <- msg
}
}