From 150202444096072b96250cfb4edf26e7fecf0f9b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 26 Oct 2023 00:29:03 +0200 Subject: [PATCH] Fix iLoveSpam --- src/plugins/iLoveSpam/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/iLoveSpam/index.ts b/src/plugins/iLoveSpam/index.ts index 79b2e3fb0..8556de426 100644 --- a/src/plugins/iLoveSpam/index.ts +++ b/src/plugins/iLoveSpam/index.ts @@ -25,10 +25,10 @@ export default definePlugin({ authors: [Devs.botato, Devs.Animal], patches: [ { - find: "),{hasFlag:", + find: "hasFlag:{writable", replacement: { - match: /(if\((.{1,2})<=1<<30\)return)/, - replace: "if($2===(1<<20)){return false};$1", + match: /if\((\i)<=(?:1<<30|1073741824)\)return/, + replace: "if($1===(1<<20))return false;$&", }, }, ],