hotfix for chat

This commit is contained in:
NoobishSVK
2024-03-01 14:28:35 +01:00
parent 044464997d
commit 181aa43570
+1 -1
View File
@@ -595,7 +595,7 @@ chatWss.on('connection', (ws, request) => {
const minutes = String(currentTime.getMinutes()).padStart(2, '0');
messageData.time = `${hours}:${minutes}`; // Adding current time to the message object in hours:minutes format
if (serverConfig.webserver.banlist.includes(clientIp)) {
if (serverConfig.webserver.banlist?.includes(clientIp)) {
return; // Do not proceed further if banned
}