diff --git a/core/abracadabra.js b/core/abracadabra.js index 9c5f573f..4d63c11a 100644 --- a/core/abracadabra.js +++ b/core/abracadabra.js @@ -1,3 +1,18 @@ /* jslint node: true */ 'use strict'; +var MenuModule = require('../core/menu_module.js').MenuModule; +var DropFile = require('./door.js').DropFile; + +exports.moduleInfo = { + name : 'Abracadabra', + desc : 'External BBS Door Module', + author : 'NuSkooler', +}; + +function AbracadabraModule(options) { + MenuModule.call(this, options); + +} + +require('util').inherits(AbracadabraModule, MenuModule); \ No newline at end of file diff --git a/core/bbs.js b/core/bbs.js index d591b72d..30cf8877 100644 --- a/core/bbs.js +++ b/core/bbs.js @@ -176,7 +176,7 @@ function startListening() { client.on('close', function onClientClose(hadError) { var l = hadError ? logger.log.info : logger.log.debug; - l({ clientId : client.runtime.id }, 'Connection closed'); + l( { clientId : client.runtime.id }, 'Connection closed'); removeClient(client); }); }); diff --git a/core/client.js b/core/client.js index 02c52686..2bf5c3c7 100644 --- a/core/client.js +++ b/core/client.js @@ -102,6 +102,12 @@ function Client(input, output) { this.user = new user.User(); this.currentTheme = { info : { name : 'N/A', description : 'None' } }; + Object.defineProperty(this, 'node', { + get : function() { + return self.runtime.id + 1; + } + }); + // // Peek at incoming |data| and emit events for any special // handling that may include: diff --git a/core/door.js b/core/door.js index 3232fb00..56f32026 100644 --- a/core/door.js +++ b/core/door.js @@ -25,8 +25,6 @@ function DropFile(options) { this.exeParams = options.exeParams || []; - - Object.defineProperty(this, 'fileName', { get : function() { return { diff --git a/core/mci_view_factory.js b/core/mci_view_factory.js index 35b21e48..2bc14631 100644 --- a/core/mci_view_factory.js +++ b/core/mci_view_factory.js @@ -53,7 +53,7 @@ MCIViewFactory.prototype.getPredefinedViewLabel = function(code) { SH : this.client.term.termHeight.toString(), SW : this.client.term.termWidth.toString(), - ND : this.client.runtime.id.toString(), + ND : this.client.node.toString(), // :TODO: change to CD for 'Current Date' DT : moment().format(this.client.currentTheme.helpers.getDateFormat()),