From d62f49d1fc3820d791f3d7cebf4fa3b6b2857707 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 24 Feb 2018 22:38:27 +0100 Subject: Skip events for webhook --- bridge/mattermost/mattermost.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bridge/mattermost') diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index 887eed38..b94f42ba 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -361,6 +361,11 @@ func (b *Bmattermost) handleUploadFile(msg *config.Message) (string, error) { // sendWebhook uses the configured WebhookURL to send the message func (b *Bmattermost) sendWebhook(msg config.Message) (string, error) { + // skip events + if msg.Event != "" { + return "", nil + } + if b.Config.PrefixMessagesWithNick { msg.Text = msg.Username + msg.Text } -- cgit v1.2.3