From e8d7c021b6270057ec6e1ad595fc48c9383ba2b4 Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 28 Sep 2011 00:30:37 +0100 Subject: [PATCH] Tired git push without testing things is not a good idea. Things go all WHOA NOT WORKY --- node/app.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/node/app.js b/node/app.js index 58efd92..de84541 100644 --- a/node/app.js +++ b/node/app.js @@ -593,19 +593,17 @@ this.httpHandler = function (request, response) { debug = (typeof uri.query.debug !== 'undefined'); + port = 6667; + ssl = false; if (uri_parts[1] !== 'client') { if (uri.query) { server_set = ((typeof uri.query.server !== 'undefined') && (uri.query.server !== '')); server = uri.query.server || 'irc.anonnet.org'; nick = uri.query.nick || ''; - port = 6667; - ssl = false; } else { server_set = false; server = 'irc.anonnet.org'; nick = ''; - port = 6667; - ssl = false; } } else { server_set = ((typeof uri_parts[2] !== 'undefined') && (uri_parts[2] !== '')); @@ -627,7 +625,7 @@ this.httpHandler = function (request, response) { .update(server_set ? 't' : 'f') .update(secure ? 't' : 'f') .update(server) - .update(port) + .update(port.toString()) .update(ssl ? 't' : 'f') .update(nick) .update(agent) -- 2.25.1