diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-03-21 03:41:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 06:41:11 +0000 |
commit | 0ba3e9f469711e56abae42a07e63dd4474aac5e3 (patch) | |
tree | 3f163278eb54f8f2d268f60c5f587eb26ff50ff5 /src/plugins | |
parent | 6f200e9218d0764555fd0e676d02b63a53702e6c (diff) | |
download | Vencord-0ba3e9f469711e56abae42a07e63dd4474aac5e3.tar.gz Vencord-0ba3e9f469711e56abae42a07e63dd4474aac5e3.tar.bz2 Vencord-0ba3e9f469711e56abae42a07e63dd4474aac5e3.zip |
I'm sorry for hurting you Fake Nitro (#637)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fakeNitro.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts index 494edc8..bba6aca 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)))` } ] |