mirror of
https://github.com/thelounge/thelounge.git
synced 2026-03-14 14:35:50 +01:00
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:
parent
5ee9c2b338
commit
bf7eb0e727
4 changed files with 10 additions and 11 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue