lib/client: fix missing account in WHOX
This commit is contained in:
parent
85e73d0ee8
commit
ac7785aa7f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue