Fix message sending (slack)

This commit is contained in:
Wim 2017-11-13 19:50:18 +01:00
parent 36a800c3f5
commit 0578b21270
1 changed files with 2 additions and 2 deletions

View File

@ -306,12 +306,12 @@ func (b *Bslack) handleSlack() {
} }
msg.Extra["file"] = append(msg.Extra["file"], config.FileInfo{Name: message.Raw.File.Name, Data: data, Comment: comment}) msg.Extra["file"] = append(msg.Extra["file"], config.FileInfo{Name: message.Raw.File.Name, Data: data, Comment: comment})
} }
}
}
flog.Debugf("Message is %#v", msg) flog.Debugf("Message is %#v", msg)
b.Remote <- msg b.Remote <- msg
} }
} }
}
}
func (b *Bslack) handleSlackClient(mchan chan *MMMessage) { func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
for msg := range b.rtm.IncomingEvents { for msg := range b.rtm.IncomingEvents {