mirror of
https://github.com/Yonle/bostr.git
synced 2025-10-05 18:32:37 +02:00
bouncer: small typo on handling aliases
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
@@ -111,7 +111,7 @@ module.exports = (ws, req, onClose) => {
|
|||||||
case "CLOSE":
|
case "CLOSE":
|
||||||
if (!authorized) return;
|
if (!authorized) return;
|
||||||
if (typeof(data[1]) !== "string") return ws.send(JSON.stringify(["NOTICE", "error: bad request."]));
|
if (typeof(data[1]) !== "string") return ws.send(JSON.stringify(["NOTICE", "error: bad request."]));
|
||||||
if (!ws.subalias.has(data[1])) return ws.send(JSON.stringify(["CLOSED", data[1], "error: this sub is not opened."]));
|
if (!ws.fakesubalias.has(data[1])) return ws.send(JSON.stringify(["CLOSED", data[1], "error: this sub is not opened."]));
|
||||||
const origID = data[1];
|
const origID = data[1];
|
||||||
const faked = ws.fakesubalias.get(origID);
|
const faked = ws.fakesubalias.get(origID);
|
||||||
ws.subs.delete(origID);
|
ws.subs.delete(origID);
|
||||||
|
Reference in New Issue
Block a user