1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

hotfix for chat

This commit is contained in:
NoobishSVK
2024-03-01 14:28:35 +01:00
parent 044464997d
commit 181aa43570

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
}