4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-08-10 22:18:10 +00:00

Return when we have only WebhookURL (mattermost). Fixes #954 (#960)

This commit is contained in:
Wim
2019-12-15 23:49:17 +01:00
committed by GitHub
parent 12d2c6fe89
commit 1f830963f6

View File

@@ -67,9 +67,8 @@ func (b *Bmattermost) handleMatter() {
b.Log.Debugf("Choosing login/password based receiving") 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 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.") b.Log.Debugf("No WebhookBindAddress specified, only WebhookURL. You will not receive messages from mattermost, only sending is possible.")
return
} }
go b.handleMatterClient(messages) go b.handleMatterClient(messages)
} }