From a108448255261c9bffa0911386a35d6e2ba93117 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:39:02 -0300 Subject: [PATCH] Improve DisableDMCallIdle --- src/plugins/disableDMCallIdle/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/disableDMCallIdle/index.ts b/src/plugins/disableDMCallIdle/index.ts index bce119d01..5738dc238 100644 --- a/src/plugins/disableDMCallIdle/index.ts +++ b/src/plugins/disableDMCallIdle/index.ts @@ -27,8 +27,8 @@ export default definePlugin({ { find: ".Messages.BOT_CALL_IDLE_DISCONNECT", replacement: { - match: /(?<=function \i\(\){)(?=.{1,120}\.Messages\.BOT_CALL_IDLE_DISCONNECT)/, - replace: "return;" + match: /,?(?=this\.idleTimeout=new \i\.Timeout)/, + replace: ";return;" } } ]