From f136636093d9f8964af19ba1228b4d33d2833988 Mon Sep 17 00:00:00 2001 From: Psychedelic Squid Date: Sat, 10 Mar 2012 18:21:50 +0000 Subject: [PATCH] webPort config option, default 443 --- modules/web.js | 2 +- run.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web.js b/modules/web.js index b188487..e3ac0fa 100644 --- a/modules/web.js +++ b/modules/web.js @@ -37,7 +37,7 @@ var webInterface = function(dbot) { res.render('quotes', { 'name': dbot.name, 'quotes': dbot.db.quoteArrs[rCategory], locals: { 'url_regex': RegExp.prototype.url_regex() } }); }); - app.listen(443); + app.listen(dbot.webPort); return { 'onDestroy': function() { diff --git a/run.js b/run.js index 0390b3f..be242b4 100644 --- a/run.js +++ b/run.js @@ -44,6 +44,7 @@ var DBot = function(timers) { this.nickserv = this.config.nickserv || 'zippy'; this.server = this.config.server || 'elara.ivixor.net'; this.port = this.config.port || 6667; + this.webPort = this.config.webPort || 443; this.moduleNames = this.config.modules || [ 'command', 'js', 'admin', 'kick', 'modehate', 'quotes', 'puns', 'spelling', 'web', 'youare' ]; this.timers = timers.create();