From ac7785aa7fd761c73fff86631200ea05a333cd78 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 2 Nov 2021 17:58:00 +0100 Subject: [PATCH] lib/client: fix missing account in WHOX --- lib/client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/client.js b/lib/client.js index f108f93..1988154 100644 --- a/lib/client.js +++ b/lib/client.js @@ -444,6 +444,10 @@ export default class Client extends EventTarget { who[k] = msg.params[2 + i]; i++; }); + if (who.account === "0") { + // WHOX uses "0" to mean "no account" + who.account = null; + } return who; default: throw new Error("Not a WHO reply: " + msg.command);