From 75cdbc8a81f584734e4df968b8eec292afe5100a Mon Sep 17 00:00:00 2001 From: Rihards Polis Date: Thu, 24 Mar 2022 17:38:55 +0200 Subject: [PATCH] Typo in streamTwitch.js? The line with the check for `!gm` will always equal `true` since adding a string to a boolean with produce a non-empty string, which is truthy. --- scripts/streamTwitch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/streamTwitch.js b/scripts/streamTwitch.js index 34572d6..c1248b7 100644 --- a/scripts/streamTwitch.js +++ b/scripts/streamTwitch.js @@ -44,7 +44,7 @@ window.onStream = () => { // H A N D L E M E S S A G E S F R O M T W I T C let strx = game.settings.get("streamMod", "streamUN") if (self) return; if (message.includes('!r')) return; - if (message.includes('!') + game.settings.get("streamMod", "chatCommandAlias")) return; + if (message.includes('!' + game.settings.get("streamMod", "chatCommandAlias"))) return; if (!inChat()) return; if (tags["display-name"].includes(strx)) return const firstGm = game.users.find((u) => u.isGM && u.active); @@ -135,4 +135,4 @@ export function levelCheck(subCheck, modStatus, subStatus) { } if (subCheck == false) return false else return true; -} \ No newline at end of file +}