mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-27 05:16:34 +02:00
bouncer notice: tell what invalid command did the client execute in NOTICE
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -167,7 +167,7 @@ module.exports = (ws, req, onClose) => {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ws.send(JSON.stringify(["NOTICE", "error: unrecognized command."]));
|
||||
ws.send(JSON.stringify(["NOTICE", `error: unrecognized command: ${data[0]}`]));
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user