mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 03:06:04 +02:00
* Code cleanup and eslint since -- remove unused variables, clean up RegExs, so on...
This commit is contained in:
parent
a106050ba3
commit
ac1433e84b
112 changed files with 1375 additions and 1898 deletions
|
@ -23,10 +23,10 @@ const packageJson = require('../package.json');
|
|||
authCode: XXXXX
|
||||
schemeCode: XXXX
|
||||
door: lord
|
||||
|
||||
|
||||
// default hoss: games.bbslink.net
|
||||
host: games.bbslink.net
|
||||
|
||||
|
||||
// defualt port: 23
|
||||
port: 23
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ exports.getModule = class BBSLinkModule extends MenuModule {
|
|||
this.config = options.menuConfig.config;
|
||||
this.config.host = this.config.host || 'games.bbslink.net';
|
||||
this.config.port = this.config.port || 23;
|
||||
}
|
||||
}
|
||||
|
||||
initSequence() {
|
||||
let token;
|
||||
|
@ -141,7 +141,7 @@ exports.getModule = class BBSLinkModule extends MenuModule {
|
|||
self.client.once('end', function clientEnd() {
|
||||
self.client.log.info('Connection ended. Terminating BBSLink connection');
|
||||
clientTerminated = true;
|
||||
bridgeConnection.end();
|
||||
bridgeConnection.end();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -170,7 +170,7 @@ exports.getModule = class BBSLinkModule extends MenuModule {
|
|||
],
|
||||
function complete(err) {
|
||||
if(err) {
|
||||
self.client.log.warn( { error : err.toString() }, 'BBSLink connection error');
|
||||
self.client.log.warn( { error : err.toString() }, 'BBSLink connection error');
|
||||
}
|
||||
|
||||
if(!clientTerminated) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue