From 0ba3e9f469711e56abae42a07e63dd4474aac5e3 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 21 Mar 2023 03:41:11 -0300 Subject: [PATCH] I'm sorry for hurting you Fake Nitro (#637) --- src/plugins/fakeNitro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts index 494edc8ba..bba6aca2b 100644 --- a/src/plugins/fakeNitro.ts +++ b/src/plugins/fakeNitro.ts @@ -91,7 +91,7 @@ export default definePlugin({ replace: '$&,typeof fakeNitroIntention!=="undefined"?fakeNitroIntention:void 0' }, { - match: /(&&!\i&&!)(\i)(?=\)return \i\.\i\.DISALLOW_EXTERNAL;)/, + match: /(&&!\i&&)!(\i)(?=\)return \i\.\i\.DISALLOW_EXTERNAL;)/, replace: (_, rest, canUseExternal) => `${rest}(!${canUseExternal}&&(typeof fakeNitroIntention==="undefined"||![${EmojiIntentions.CHAT},${EmojiIntentions.GUILD_STICKER_RELATED_EMOJI}].includes(fakeNitroIntention)))` } ]