From 1f830963f664e0f4961b74f30bce01bf009a69d9 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 15 Dec 2019 23:49:17 +0100 Subject: [PATCH] Return when we have only WebhookURL (mattermost). Fixes #954 (#960) --- bridge/mattermost/handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bridge/mattermost/handlers.go b/bridge/mattermost/handlers.go index 0b1c776a..e0e5f924 100644 --- a/bridge/mattermost/handlers.go +++ b/bridge/mattermost/handlers.go @@ -67,9 +67,8 @@ func (b *Bmattermost) handleMatter() { 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") != "" { + if b.GetString("WebhookBindAddress") == "" && b.GetString("WebhookURL") != "" && b.GetString("Token") == "" && b.GetString("Login") == "" { b.Log.Debugf("No WebhookBindAddress specified, only WebhookURL. You will not receive messages from mattermost, only sending is possible.") - return } go b.handleMatterClient(messages) }