diff options
author | Wim <wim@42.be> | 2019-05-01 18:10:31 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-05-01 18:10:31 +0200 |
commit | 1829dc3d9f65ed04c6d4e4b604a71ca29f8dd911 (patch) | |
tree | 71a8b5cb4cbfe66dd4c3d73a411bc47430c169ea /bridge/discord | |
parent | bd0e81f5a0290fbc07a26664d327c09c306b9597 (diff) | |
download | matterbridge-msglm-1829dc3d9f65ed04c6d4e4b604a71ca29f8dd911.tar.gz matterbridge-msglm-1829dc3d9f65ed04c6d4e4b604a71ca29f8dd911.tar.bz2 matterbridge-msglm-1829dc3d9f65ed04c6d4e4b604a71ca29f8dd911.zip |
Allow messages from other bots (discord). Fixes #816
Diffstat (limited to 'bridge/discord')
-rw-r--r-- | bridge/discord/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index bc8ec939..85a36e1d 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -36,7 +36,7 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat return } // 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 } |