Fix FakeNitro sticker bypass (#1964)

This commit is contained in:
zImPatrick 2023-11-07 19:58:10 +01:00 committed by Nuckyz
parent 04d2dd26c4
commit 32f2043193
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -206,10 +206,10 @@ export default definePlugin({
},
// Allow stickers to be sent everywhere
{
find: "canUseStickersEverywhere:function",
find: "canUseCustomStickersEverywhere:function",
predicate: () => settings.store.enableStickerBypass,
replacement: {
match: /canUseStickersEverywhere:function\(\i\){/,
match: /canUseCustomStickersEverywhere:function\(\i\){/,
replace: "$&return true;"
},
},