summary refs log tree commit diff
path: root/src/gateway/events/Connection.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-16 19:31:36 +1100
committerGitHub <noreply@github.com>2023-02-16 19:31:36 +1100
commit3c11ffe17a45b4f6a9e1cb500fe22e26bc764f4b (patch)
treeff7fdfd20f6b29f7a5f2afa667e4d00f5511ae5f /src/gateway/events/Connection.ts
parentFix being unable to unset nicknames (diff)
downloadserver-3c11ffe17a45b4f6a9e1cb500fe22e26bc764f4b.tar.xz
Fix a bug prevent connections using erlpack (#977)
Diffstat (limited to '')
-rw-r--r--src/gateway/events/Connection.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/events/Connection.ts b/src/gateway/events/Connection.ts
index 5ba68ef7..1c902de0 100644
--- a/src/gateway/events/Connection.ts
+++ b/src/gateway/events/Connection.ts
@@ -88,7 +88,7 @@ export async function Connection(
 		if (!["json", "etf"].includes(socket.encoding))
 			return socket.close(CLOSECODES.Decode_error);
 
-		if (socket.encoding === "etf" && erlpack)
+		if (socket.encoding === "etf" && !erlpack)
 			throw new Error("Erlpack is not installed: 'npm i erlpack'");
 
 		socket.version = Number(searchParams.get("version")) || 8;