* Various
This commit is contained in:
parent
72b54b19b7
commit
d16beca341
|
@ -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);
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -25,8 +25,6 @@ function DropFile(options) {
|
|||
this.exeParams = options.exeParams || [];
|
||||
|
||||
|
||||
|
||||
|
||||
Object.defineProperty(this, 'fileName', {
|
||||
get : function() {
|
||||
return {
|
||||
|
|
|
@ -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()),
|
||||
|
|
Loading…
Reference in New Issue