A lot of code tidy up

This commit is contained in:
Bryan Ashby
2020-06-15 19:08:55 -06:00
parent fd86293dbe
commit 9e9dc9af89
16 changed files with 144 additions and 140 deletions

View File

@@ -3,6 +3,7 @@ const LoginServerModule = require('../../login_server_module');
const { Client } = require('../../client');
const Config = require('../../config').get;
const { log: Log } = require('../../logger');
const { Errors } = require('../../enig_error');
// deps
const net = require('net');
@@ -173,7 +174,7 @@ class TelnetClient {
return this.disconnect();
});
this.socket.on('AYT', () => {
this.socket.on('AYT', command => {
this.socket.write('\b');
return this._logTrace(command, 'Are You There (AYT) - Replied');
});
@@ -230,7 +231,7 @@ class TelnetClient {
this.clientReadyHandled = true;
this.emit('ready', { firstMenu : Config().loginServers.telnet.firstMenu } );
}
};
}
inherits(TelnetClient, Client);