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

@@ -17,7 +17,7 @@ const os = require('os');
// MRC
const protocolVersion = '1.2.9';
const lineDelimiter = new RegExp('\r\n|\r|\n');
const lineDelimiter = new RegExp('\r\n|\r|\n'); // eslint-disable-line no-control-regex
const ModuleInfo = exports.moduleInfo = {
name : 'MRC',

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);

View File

@@ -14,7 +14,6 @@ const WebSocketServer = require('ws').Server;
const http = require('http');
const https = require('https');
const fs = require('graceful-fs');
const Writable = require('stream');
const { Duplex } = require('stream');
const forEachSeries = require('async/forEachSeries');