Tidy tidy tidy
This commit is contained in:
parent
226c261505
commit
94145c043a
|
@ -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()) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue