Fix Update userlist on join (slack). Closes #372

This commit is contained in:
Wim 2018-02-22 23:56:00 +01:00
parent cce7624ab8
commit f82a9cc7ac

View File

@ -343,7 +343,7 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
switch ev := msg.Data.(type) {
case *slack.MessageEvent:
// update the userlist on a channel_join
if message.Raw.SubType == "channel_join" {
if ev.SubType == "channel_join" {
b.Users, _ = b.sc.GetUsers()
}
if ev.SubType == "pinned_item" || ev.SubType == "unpinned_item" {