commit 9482c09c9754ec519b955dfba507c83efaa7a624
Author: Wim <wim@42.be>
Date: Sat Feb 24 22:38:27 2018 +0000
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index f4fc8e2..eb74dd8 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -1286 +12810 @@ func (b *bdiscord) Send(msg config.Message) (string, error) {
// Use webhook to send the message
if wID != "" {
+ // skip events
+ if msg.Event != "" {
+ return "", nil
+ }
flog.Debugf("Broadcasting using Webhook")
err := b.c.WebhookExecute(
wID,
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 887eed3..b94f42b 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -3616 +36111 @@ 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
}