diff options
author | Wim <wim@42.be> | 2019-12-15 23:49:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-15 23:49:17 +0100 |
commit | 1f830963f664e0f4961b74f30bce01bf009a69d9 (patch) | |
tree | 5bad6fa513730fdb4e87454ba6dc9d641674f31e /bridge/mattermost | |
parent | 12d2c6fe89aba81590126d31df51acbcb6622262 (diff) | |
download | matterbridge-msglm-1f830963f664e0f4961b74f30bce01bf009a69d9.tar.gz matterbridge-msglm-1f830963f664e0f4961b74f30bce01bf009a69d9.tar.bz2 matterbridge-msglm-1f830963f664e0f4961b74f30bce01bf009a69d9.zip |
Return when we have only WebhookURL (mattermost). Fixes #954 (#960)
Diffstat (limited to 'bridge/mattermost')
-rw-r--r-- | bridge/mattermost/handlers.go | 3 |
1 files changed, 1 insertions, 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) } |