From 35afe1de8312f8c205a8da060a8f7f7cbfe67205 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sun, 25 Feb 2024 00:35:24 +0700 Subject: [PATCH] bouncer notice: tell what invalid command did the client execute in NOTICE Signed-off-by: Yonle --- bouncer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bouncer.js b/bouncer.js index d2e6b22..f7ec0e7 100644 --- a/bouncer.js +++ b/bouncer.js @@ -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; } });