bouncer: logger: log when user initialized first command

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle 2024-02-18 19:40:56 +07:00
parent a6e7caa76b
commit b4eab0d2f4

View File

@ -79,6 +79,7 @@ module.exports = (ws, req, onClose) => {
}
if (!ws.relays.size && !sessStarted) {
console.log(process.pid, `>>>`, `${ws.ip} executed ${data[1]} command for the first. Initializing session`);
newsess(ws);
sessStarted = true;
}
@ -115,6 +116,7 @@ module.exports = (ws, req, onClose) => {
}
if (!ws.relays.size && !sessStarted) {
console.log(process.pid, `>>>`, `${ws.ip} executed ${data[1]} command for the first. Initializing session`);
newsess(ws);
sessStarted = true;
}