diff options
author | David Hill <dhill@mindcry.org> | 2018-12-15 16:57:54 -0500 |
---|---|---|
committer | Wim <wim@42.be> | 2018-12-15 22:57:54 +0100 |
commit | 192fe89789cb8d35b0be990b7fb9eb4ae2be9d60 (patch) | |
tree | f4eaa616bdf4ef834839d935f39e8112f508b16c /bridge/slack/handlers.go | |
parent | 959ca3cef3f4cf2ca45078deb01c1bcdbd17a135 (diff) | |
download | matterbridge-msglm-192fe89789cb8d35b0be990b7fb9eb4ae2be9d60.tar.gz matterbridge-msglm-192fe89789cb8d35b0be990b7fb9eb4ae2be9d60.tar.bz2 matterbridge-msglm-192fe89789cb8d35b0be990b7fb9eb4ae2be9d60.zip |
Populate user on channel join (slack) (#644)
Diffstat (limited to 'bridge/slack/handlers.go')
-rw-r--r-- | bridge/slack/handlers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index 89c800da..b9011c92 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -89,7 +89,10 @@ func (b *Bslack) handleSlackClient(messages chan *config.Message) { b.Log.Fatalf("Invalid Token %#v", ev) case *slack.ConnectionErrorEvent: b.Log.Errorf("Connection failed %#v %#v", ev.Error(), ev.ErrorObj) + case *slack.MemberJoinedChannelEvent: + b.populateUser(ev.User) default: + b.Log.Debugf("Unhandled incoming event: %T", ev) } } } |