summaryrefslogtreecommitdiffstats
path: root/bridge/slack
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-05-27 22:14:31 +0200
committerWim <wim@42.be>2018-05-27 22:14:31 +0200
commit696c51855024fd0bfffe1bec62ae2e4dd29532a1 (patch)
tree80b492051bdf87b82f7969ef20647af48609961c /bridge/slack
parent411ef2691ccec024cf6b952e42d3f4564cb9ec58 (diff)
downloadmatterbridge-msglm-696c51855024fd0bfffe1bec62ae2e4dd29532a1.tar.gz
matterbridge-msglm-696c51855024fd0bfffe1bec62ae2e4dd29532a1.tar.bz2
matterbridge-msglm-696c51855024fd0bfffe1bec62ae2e4dd29532a1.zip
Add error message about webhook (slack)
Diffstat (limited to 'bridge/slack')
-rw-r--r--bridge/slack/slack.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 1633d820..58abf48c 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -573,6 +573,10 @@ func (b *Bslack) handleMessageEvent(ev *slack.MessageEvent) (*config.Message, er
// Only deleted messages can have a empty username and text
if (rmsg.Text == "" || rmsg.Username == "") && ev.SubType != messageDeleted {
+ // this is probably a webhook we couldn't resolve
+ if ev.BotID != "" {
+ return nil, fmt.Errorf("probably an incoming webhook we couldn't resolve (maybe ourselves)")
+ }
return nil, fmt.Errorf("empty message and not a deleted message")
}