forked from CringeStudios/gamja
lib/client: fix missing account in WHOX
This commit is contained in:
parent
85e73d0ee8
commit
ac7785aa7f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user