diff options
author | Wim <wim@42.be> | 2017-01-12 00:40:50 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-01-12 00:40:50 +0100 |
commit | b3c3142bb249ad8d959b89f52faff8004deadbd9 (patch) | |
tree | e2ab151c412c9e1fb4e036bec093e01799063c2c /bridge | |
parent | 77f1a959c3fa244fa4566335b87e428daf3614f4 (diff) | |
download | matterbridge-msglm-b3c3142bb249ad8d959b89f52faff8004deadbd9.tar.gz matterbridge-msglm-b3c3142bb249ad8d959b89f52faff8004deadbd9.tar.bz2 matterbridge-msglm-b3c3142bb249ad8d959b89f52faff8004deadbd9.zip |
Do not use API functions in webhook (slack). Closes #110
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/slack/slack.go | 2 |
1 files changed, 1 insertions, 1 deletions
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") |