lib/client: fix missing account in WHOX

This commit is contained in:
Simon Ser 2021-11-02 17:58:00 +01:00
parent 85e73d0ee8
commit ac7785aa7f

View File

@ -444,6 +444,10 @@ export default class Client extends EventTarget {
who[k] = msg.params[2 + i]; who[k] = msg.params[2 + i];
i++; i++;
}); });
if (who.account === "0") {
// WHOX uses "0" to mean "no account"
who.account = null;
}
return who; return who;
default: default:
throw new Error("Not a WHO reply: " + msg.command); throw new Error("Not a WHO reply: " + msg.command);