diff options
Diffstat (limited to 'bridge/slack')
-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 } } |