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);