Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit c850c9f03461aee3949fa6d3376bf40584cf07ea Author: Wim <wim@42.be> Date: Thu Jan 12 00:40:50 2017 +0000 Do not use API functions in webhook (slack). Closes #110 diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index db8885c..c3d3d92 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -1597 +1597 @@ 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")