Tidy tidy tidy
This commit is contained in:
parent
226c261505
commit
94145c043a
|
@ -153,7 +153,7 @@ function addNewClient(client, clientSock) {
|
||||||
|
|
||||||
client.log.info(
|
client.log.info(
|
||||||
connInfo,
|
connInfo,
|
||||||
`Client connected (${connInfo.serverName}/${connInfo.port})`
|
`Client connected on node ${nodeId} (${connInfo.serverName}/${connInfo.port})`
|
||||||
);
|
);
|
||||||
|
|
||||||
Events.emit(Events.getSystemEvents().ClientConnected, {
|
Events.emit(Events.getSystemEvents().ClientConnected, {
|
||||||
|
@ -176,7 +176,7 @@ function removeClient(client) {
|
||||||
connectionCount: clientConnections.length,
|
connectionCount: clientConnections.length,
|
||||||
nodeId: client.node,
|
nodeId: client.node,
|
||||||
},
|
},
|
||||||
'Client disconnected'
|
`Client disconnected from node ${client.node}`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (client.user && client.user.isValid()) {
|
if (client.user && client.user.isValid()) {
|
||||||
|
|
|
@ -150,7 +150,7 @@ exports.getModule = class TransferFileModule extends MenuModule {
|
||||||
|
|
||||||
this.client.log.info(
|
this.client.log.info(
|
||||||
{ sentFiles: sentFiles },
|
{ 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);
|
return cb(err);
|
||||||
|
|
|
@ -133,7 +133,7 @@ exports.getModule = class UploadModule extends MenuModule {
|
||||||
|
|
||||||
getSaveState() {
|
getSaveState() {
|
||||||
// if no areas, we're falling back due to lack of access/areas avail to upload to
|
// 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 {
|
return {
|
||||||
uploadType: this.uploadType,
|
uploadType: this.uploadType,
|
||||||
tempRecvDirectory: this.tempRecvDirectory,
|
tempRecvDirectory: this.tempRecvDirectory,
|
||||||
|
|
Loading…
Reference in New Issue