Spaces to tabs, to match upstream convention
This commit is contained in:
parent
c45824b3ad
commit
06e84eee94
|
@ -9,3 +9,5 @@ node_modules/
|
|||
mods/northern_bloc.hjson
|
||||
mods/suprapi/*
|
||||
mods/suprapi
|
||||
|
||||
.editor-settings
|
||||
|
|
|
@ -88,7 +88,7 @@ function main() {
|
|||
}
|
||||
],
|
||||
function complete(err) {
|
||||
events.registerModules();
|
||||
events.registerModules();
|
||||
|
||||
// note this is escaped:
|
||||
fs.readFile(paths.join(__dirname, '../misc/startup_banner.asc'), 'utf8', (err, banner) => {
|
||||
|
|
|
@ -176,8 +176,8 @@ function connectEntry(client, nextMenu) {
|
|||
//
|
||||
displayBanner(term);
|
||||
|
||||
// fire event
|
||||
events.emit('codes.l33t.enigma.system.term_detected', {'client': client});
|
||||
// fire event
|
||||
events.emit('codes.l33t.enigma.system.term_detected', {'client': client});
|
||||
|
||||
setTimeout( () => {
|
||||
return client.menuStack.goto(nextMenu);
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
'use strict';
|
||||
|
||||
const Config = require('./config.js');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const events = require('events');
|
||||
const logger = require('./logger.js');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const events = require('events');
|
||||
const logger = require('./logger.js');
|
||||
|
||||
var eventEmitter = new events.EventEmitter();
|
||||
|
||||
|
@ -18,10 +18,10 @@ var self = module.exports = {
|
|||
logger.log.debug("Register listener for "+eventName);
|
||||
eventEmitter.on(eventName, listener);
|
||||
},
|
||||
remove: function(eventName, listener) {
|
||||
logger.log.debug("Remove listener for "+eventName);
|
||||
eventEmitter.removeListener(eventName, listener);
|
||||
},
|
||||
remove: function(eventName, listener) {
|
||||
logger.log.debug("Remove listener for "+eventName);
|
||||
eventEmitter.removeListener(eventName, listener);
|
||||
},
|
||||
registerModules: function() {
|
||||
var mods = fs.readdirSync(Config.config.paths.mods);
|
||||
|
||||
|
@ -32,7 +32,7 @@ var self = module.exports = {
|
|||
}
|
||||
if (fs.existsSync(modPath)) {
|
||||
var module = require(modPath);
|
||||
|
||||
|
||||
if (module.registerEvents !== undefined) {
|
||||
logger.log.debug(modPath+" calling registerEvents function");
|
||||
module.registerEvents();
|
||||
|
|
Loading…
Reference in New Issue