aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/disableDMCallIdle.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/disableDMCallIdle.ts')
-rw-r--r--src/plugins/disableDMCallIdle.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/disableDMCallIdle.ts b/src/plugins/disableDMCallIdle.ts
index c620f54..2ba861c 100644
--- a/src/plugins/disableDMCallIdle.ts
+++ b/src/plugins/disableDMCallIdle.ts
@@ -27,9 +27,9 @@ export default definePlugin({
{
find: ".Messages.BOT_CALL_IDLE_DISCONNECT",
replacement: {
- match: /function (?<functionName>.{1,3})\(\){.{1,100}\.Messages\.BOT_CALL_IDLE_DISCONNECT.+?}}/,
- replace: "function $<functionName>(){}",
- },
- },
- ],
+ match: /(?<=function \i\(\){)(?=.{1,100}\.Messages\.BOT_CALL_IDLE_DISCONNECT)/,
+ replace: "return;"
+ }
+ }
+ ]
});