summary refs log tree commit diff homepage
path: root/src
diff options
context:
space:
mode:
authordestruc7i0n <dscdsouza@outlook.com>2020-04-29 10:04:35 -0400
committerdestruc7i0n <dscdsouza@outlook.com>2020-04-29 10:04:35 -0400
commitcc4922d5b7609ab0c484f9b2effcacec1da5e0aa (patch)
tree21b70083d116a58e83cecdd14beeddc91481cf0b /src
parentMerge branch 'master' of https://github.com/destruc7i0n/shulker (diff)
downloadshulker-cc4922d5b7609ab0c484f9b2effcacec1da5e0aa.tar.gz
shulker-cc4922d5b7609ab0c484f9b2effcacec1da5e0aa.zip
backwards compat with new option
Diffstat (limited to 'src')
-rw-r--r--src/Discord.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Discord.ts b/src/Discord.ts
index 4f177c8..2893c8b 100644
--- a/src/Discord.ts
+++ b/src/Discord.ts
@@ -76,6 +76,9 @@ class Discord {
     if (message.channel.id !== this.channel || message.channel.type !== 'text') return
     // if using webhooks, ignore this!
     if (message.webhookID) {
+      // backwards compatability with older config
+      if (this.config.USE_WEBHOOKS && this.config.IGNORE_WEBHOOKS === undefined) return
+
       // if ignoring all webhooks, ignore
       if (this.config.IGNORE_WEBHOOKS) {
         return