diff options
author | Wim <wim@42.be> | 2017-08-27 00:00:02 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-08-27 00:00:02 +0200 |
commit | 43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a (patch) | |
tree | 49194f529f7e0ddce497f8592f659b4e003d422e /bridge/slack/slack.go | |
parent | 7f9a400776e0000c84e6539a932027965098d6a3 (diff) | |
download | matterbridge-msglm-43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a.tar.gz matterbridge-msglm-43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a.tar.bz2 matterbridge-msglm-43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a.zip |
Handle leave/join events (slack). Closes #246
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r-- | bridge/slack/slack.go | 4 |
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 } } |