From b3c3142bb249ad8d959b89f52faff8004deadbd9 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 12 Jan 2017 00:40:50 +0100 Subject: [PATCH] Do not use API functions in webhook (slack). Closes #110 --- bridge/slack/slack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index db8885c2..c3d3d927 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -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")