From 1d9f06f9f59cfe226b49010928a3a08bfc24f3b1 Mon Sep 17 00:00:00 2001 From: MDMCK10 <21245760+MDMCK10@users.noreply.github.com> Date: Tue, 28 Mar 2023 15:44:07 +0200 Subject: [PATCH] This should never happen but let's add a check for it anyway --- src/WSServer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WSServer.ts b/src/WSServer.ts index 28ea690..8482f84 100644 --- a/src/WSServer.ts +++ b/src/WSServer.ts @@ -207,6 +207,7 @@ export default class WSServer { break; case "chat": if (!client.username) return; + if (!client.connectedToNode) return; if (client.IP.muted) return; if (msgArr.length !== 2) return; var msg = Utilities.HTMLSanitize(msgArr[1]);