Skip to content

Commit

Permalink
Merge pull request #50 from cmd1152/main
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
0x24a authored Mar 29, 2024
2 parents 74e4203 + 7c2649e commit 8d7cf30
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 8d7cf30

Please sign in to comment.