From 5f56ca2ef38f1ada57cbfb470670ad15587af8b2 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 1 May 2021 13:53:26 +0200 Subject: :bug: fix identify schema --- src/opcodes/Identify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/opcodes') 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; -- cgit 1.5.1