From 7c2649e66a9170afcded4d5315be66c412b52a86 Mon Sep 17 00:00:00 2001 From: cmd1152 Date: Fri, 29 Mar 2024 22:52:27 +0800 Subject: [PATCH] fix --- plugins/fast_know_kick_me/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/fast_know_kick_me/index.js b/plugins/fast_know_kick_me/index.js index 09d6456..1f1e97f 100644 --- a/plugins/fast_know_kick_me/index.js +++ b/plugins/fast_know_kick_me/index.js @@ -1,8 +1,8 @@ var checkString = false var joined = false hook.register('before','pushmessage', (args) =>{ - if (args.cmd == "onlineSet") joined = true - if (args.cmd == "warn" && args.text == 'Unknown command: /y' && checkString) { + if (args[0].cmd == "onlineSet") joined = true + if (args[0].cmd == "warn" && args.text == 'Unknown command: /y' && checkString) { checkString = false return false; }