summary refs log tree commit diff
path: root/src/opcodes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-01 13:53:26 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-01 13:53:26 +0200
commit5f56ca2ef38f1ada57cbfb470670ad15587af8b2 (patch)
treee46918c27c8b08aa2f5c9360344614b3207eb3b5 /src/opcodes
parent:zap: add dev script (diff)
downloadserver-5f56ca2ef38f1ada57cbfb470670ad15587af8b2.tar.xz
:bug: fix identify schema
Diffstat (limited to 'src/opcodes')
-rw-r--r--src/opcodes/Identify.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opcodes/Identify.ts b/src/opcodes/Identify.ts

index 75e00b28..0f0ca470 100644 --- a/src/opcodes/Identify.ts +++ b/src/opcodes/Identify.ts
@@ -25,7 +25,7 @@ import { check } from "./instanceOf"; export async function onIdentify(this: WebSocket, data: Payload) { clearTimeout(this.readyTimeout); - check.call(this, IdentifySchema, data.d); + if (!check.call(this, IdentifySchema, data.d)) return; const identify: IdentifySchema = data.d;