network event: remove unused array

All the network events only ever emit a single copy
There's no point in wrapping it into an array
This commit is contained in:
Reto Brunner 2024-04-07 14:22:53 +02:00
commit bf7eb0e727
4 changed files with 10 additions and 11 deletions

View file

@ -344,7 +344,7 @@ class Client {
client.networks.push(network);
client.emit("network", {
networks: [network.getFilteredClone(this.lastActiveChannel, -1)],
network: network.getFilteredClone(this.lastActiveChannel, -1),
});
if (!network.validate(client)) {