Tired git push without testing things is not a good idea. Things go all WHOA NOT...
authorDarren <darren@darrenwhitlen.com>
Tue, 27 Sep 2011 23:30:37 +0000 (00:30 +0100)
committerDarren <darren@darrenwhitlen.com>
Tue, 27 Sep 2011 23:30:37 +0000 (00:30 +0100)
node/app.js

index 58efd92f9543fec2f6ab824e320a2524ffa7a9d9..de84541d12c1fb2919e0768f15148b446fa71d84 100644 (file)
@@ -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)