* Various

This commit is contained in:
Bryan Ashby 2015-08-01 01:00:15 -06:00
parent 72b54b19b7
commit d16beca341
5 changed files with 23 additions and 4 deletions

View File

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

View File

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

View File

@ -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:

View File

@ -25,8 +25,6 @@ function DropFile(options) {
this.exeParams = options.exeParams || [];
Object.defineProperty(this, 'fileName', {
get : function() {
return {

View File

@ -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()),