This should never happen but let's add a check for it anyway

This commit is contained in:
MDMCK10
2023-03-28 15:44:07 +02:00
committed by GitHub
parent 81ed711fac
commit 1d9f06f9f5

View File

@@ -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]);