lib/client: fix missing account in WHOX
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user