this is what you get for not modulating properly you shit

This commit is contained in:
reality 2013-12-12 23:49:40 +00:00
parent 5e1dcd4d30
commit 2cb8c4fc10
2 changed files with 3 additions and 2 deletions

View File

@ -82,7 +82,7 @@ var webInterface = function(dbot) {
_.extend(one, { _.extend(one, {
'name': dbot.config.name, 'name': dbot.config.name,
'user': req.user, 'user': req.user,
'modules': this.indexLinks 'routes': this.indexLinks
}); });
resp.render(this.module + '/' + view, one, two); resp.render(this.module + '/' + view, one, two);
}).bind(this); }).bind(this);
@ -106,6 +106,8 @@ var webInterface = function(dbot) {
} }
}.bind(this)); }.bind(this));
this.reloadPages();
this.app.get('/', function(req, res) { this.app.get('/', function(req, res) {
res.render('index', { res.render('index', {
'name': dbot.config.name, 'name': dbot.config.name,

1
run.js
View File

@ -306,7 +306,6 @@ DBot.prototype.reloadModules = function() {
}.bind(this)); }.bind(this));
process.nextTick(function() { process.nextTick(function() {
if(_.has(this.modules, 'web')) this.modules.web.reloadPages();
_.each(this.modules, function(module, name) { _.each(this.modules, function(module, name) {
if(module.onLoad) { if(module.onLoad) {
try { try {