summary refs log tree commit diff
path: root/src/gateway
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
commitc59af8156300c9717a079a4896fe8e9a4f8f4e18 (patch)
tree4db9d9b8023aa708b388558598bdb7e880bb9ac9 /src/gateway
parentFix being unable to unset nicknames (diff)
downloadserver-c59af8156300c9717a079a4896fe8e9a4f8f4e18.tar.xz
Fix a bug prevent connections using erlpack (#977)
Diffstat (limited to 'src/gateway')
-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;