mirror of
https://github.com/Yonle/bostr.git
synced 2025-03-18 05:42:03 +01:00
bouncer: small typo on handling aliases
Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
parent
22486202e4
commit
356a985ede
@ -111,7 +111,7 @@ module.exports = (ws, req, onClose) => {
|
||||
case "CLOSE":
|
||||
if (!authorized) return;
|
||||
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 faked = ws.fakesubalias.get(origID);
|
||||
ws.subs.delete(origID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user