mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
bouncer: logger: log when user initialized first command
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
a6e7caa76b
commit
b4eab0d2f4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user