Do not relay any bot messages (discord) (#743)

This commit is contained in:
Wim 2019-02-28 12:59:52 +01:00 committed by GitHub
parent 120bf39f55
commit af00c34aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat
return return
} }
// if using webhooks, do not relay if it's ours // if using webhooks, do not relay if it's ours
if b.useWebhook() && m.Author.Bot && b.isWebhookID(m.Author.ID) { if b.useWebhook() && m.Author.Bot { // && b.isWebhookID(m.Author.ID) {
return return
} }