5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-25 22:31:35 +00:00

Do not use API functions in webhook (slack). Closes #110

This commit is contained in:
Wim 2017-01-12 00:40:50 +01:00
parent 77f1a959c3
commit b3c3142bb2

View File

@ -159,7 +159,7 @@ func (b *Bslack) handleSlack() {
flog.Debug("Start listening for Slack messages")
for message := range mchan {
// do not send messages from ourself
if message.Username == b.si.User.Name {
if b.Config.UseAPI && message.Username == b.si.User.Name {
continue
}
texts := strings.Split(message.Text, "\n")