5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 03:25:40 +00:00

Skip empty messages being sent with the webhook (discord). #469

This commit is contained in:
Wim 2018-07-21 23:19:11 +02:00
parent 618953c865
commit 93307b57aa

View File

@ -137,6 +137,10 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
msg.Text += " " + fi.URL
}
}
// skip empty messages
if msg.Text == "" {
return "", nil
}
err := b.c.WebhookExecute(
wID,
wToken,