commit 037863cd73741c31c56150a4960737bf3dc1d18e
Author: Wim <wim@42.be>
Date: Fri Oct 04 01:01:24 2019 +0000
diff --git a/bridge/mattermost/handlers.go b/bridge/mattermost/handlers.go
index cd625c5..0b1c776 100644
--- a/bridge/mattermost/handlers.go
+++ b/bridge/mattermost/handlers.go
@@ -666 +6611 @@ func (b *Bmattermost) handleMatter() {
} else {
b.Log.Debugf("Choosing login/password based receiving")
}
+ // if for some reason we only want to sent stuff to mattermost but not receive, return
+ if b.GetString("WebhookBindAddress") == "" && b.GetString("WebhookURL") != "" {
+ b.Log.Debugf("No WebhookBindAddress specified, only WebhookURL. You will not receive messages from mattermost, only sending is possible.")
+ return
+ }
go b.handleMatterClient(messages)
}
var ok bool