Spaces to tabs, to match upstream convention

This commit is contained in:
Josh M. McKee 2017-06-10 18:52:11 -07:00
parent c45824b3ad
commit 06e84eee94
4 changed files with 14 additions and 12 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@ node_modules/
mods/northern_bloc.hjson
mods/suprapi/*
mods/suprapi
.editor-settings

View File

@ -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) => {

View File

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

View File

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