Tidy tidy tidy

This commit is contained in:
Bryan Ashby 2022-08-18 14:55:57 -06:00
parent 226c261505
commit 94145c043a
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
3 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ function addNewClient(client, clientSock) {
client.log.info(
connInfo,
`Client connected (${connInfo.serverName}/${connInfo.port})`
`Client connected on node ${nodeId} (${connInfo.serverName}/${connInfo.port})`
);
Events.emit(Events.getSystemEvents().ClientConnected, {
@ -176,7 +176,7 @@ function removeClient(client) {
connectionCount: clientConnections.length,
nodeId: client.node,
},
'Client disconnected'
`Client disconnected from node ${client.node}`
);
if (client.user && client.user.isValid()) {

View File

@ -150,7 +150,7 @@ exports.getModule = class TransferFileModule extends MenuModule {
this.client.log.info(
{ sentFiles: sentFiles },
`User "${self.client.user.username}" uploaded ${sentFiles.length} file(s)`
`User "${this.client.user.username}" downloaded ${sentFiles.length} file(s)`
);
}
return cb(err);

View File

@ -133,7 +133,7 @@ exports.getModule = class UploadModule extends MenuModule {
getSaveState() {
// if no areas, we're falling back due to lack of access/areas avail to upload to
if (this.availAreas.length > 0) {
if (this.availAreas.length > 0 && this.viewControllers.options) {
return {
uploadType: this.uploadType,
tempRecvDirectory: this.tempRecvDirectory,