Connect networks after setting user defaults
This commit is contained in:
parent
8696f03e8d
commit
fe031c8b12
@ -79,12 +79,6 @@ function Client(manager, name, config = {}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(client.config.networks || []).forEach((network) => client.connect(network, true));
|
|
||||||
|
|
||||||
// Networks are stored directly in the client object
|
|
||||||
// We don't need to keep it in the config object
|
|
||||||
delete client.config.networks;
|
|
||||||
|
|
||||||
if (typeof client.config.sessions !== "object") {
|
if (typeof client.config.sessions !== "object") {
|
||||||
client.config.sessions = {};
|
client.config.sessions = {};
|
||||||
}
|
}
|
||||||
@ -115,6 +109,12 @@ function Client(manager, name, config = {}) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
(client.config.networks || []).forEach((network) => client.connect(network, true));
|
||||||
|
|
||||||
|
// Networks are stored directly in the client object
|
||||||
|
// We don't need to keep it in the config object
|
||||||
|
delete client.config.networks;
|
||||||
|
|
||||||
if (client.name) {
|
if (client.name) {
|
||||||
log.info(`User ${colors.bold(client.name)} loaded`);
|
log.info(`User ${colors.bold(client.name)} loaded`);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user