Fix FakeNitro sticker bypass (#1964)
This commit is contained in:
parent
04d2dd26c4
commit
32f2043193
@ -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;"
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user