Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd1152 committed Mar 29, 2024
1 parent 74e4203 commit 7c2649e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/fast_know_kick_me/index.js
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down

0 comments on commit 7c2649e

Please sign in to comment.