···18181919- **Ergo Testnet**: `wss://testnet.ergo.chat/webirc`
2020- **Libera.Chat**: `wss://web.libera.chat/webirc/websocket/`
2121+- Some others I imagine
21222223a plea to network administrators: please disable CORS on your webirc endpoints. i really really do not want to have to set up a proxy.
2324
+8-6
core/whois.ts
···5050 conn.send(`WHOIS :${nick}`);
5151 const result = await q;
52525353+ let thisguy: Partial<UserMetadata> = {
5454+ operator: false,
5555+ registered: false,
5656+ modes: [],
5757+ };
5858+5359 if (conn.supports.metadata()) {
6060+ thisguy.metadata = {};
5461 const meta_query = conn.collect_batch("metadata");
5562 conn.send(`METADATA ${nick} GET ${supported_keys.join(" ")}`);
5663 result.push(...(await meta_query));
5764 }
58655959- let thisguy: Partial<UserMetadata> = {
6060- metadata: {},
6161- operator: false,
6262- registered: false,
6363- modes: [],
6464- };
65666667 for (const msg of result) {
6768 if (!msg.params) continue;
···7374 thisguy.realname = msg.params.at(-1);
7475 break;
7576 case Numeric.RPL_KEYVALUE:
7777+ if (!thisguy.metadata) continue;
7678 const key = msg.params[2];
7779 const value = msg.params.at(-1);
7880 if (!value) break;