mirror of
https://codeberg.org/emersion/gamja
synced 2025-04-22 01:23:56 +02:00
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];
|
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…
x
Reference in New Issue
Block a user