diff options
author | Wim <wim@42.be> | 2018-02-24 22:38:27 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-27 23:22:10 +0100 |
commit | d62f49d1fc3820d791f3d7cebf4fa3b6b2857707 (patch) | |
tree | d1c9d0851b2edce0afc5d2d9b97c04f2194f7529 /bridge/mattermost/mattermost.go | |
parent | 63b88e77f20e2869d3c9bf136a0c9fa84980ca69 (diff) | |
download | matterbridge-msglm-d62f49d1fc3820d791f3d7cebf4fa3b6b2857707.tar.gz matterbridge-msglm-d62f49d1fc3820d791f3d7cebf4fa3b6b2857707.tar.bz2 matterbridge-msglm-d62f49d1fc3820d791f3d7cebf4fa3b6b2857707.zip |
Skip events for webhook
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r-- | bridge/mattermost/mattermost.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |