fix crashbug caused by using semicolons instead of commas and/or lack of require...
authorJack Allnutt <m2ys4u@Gmail.com>
Fri, 21 Sep 2012 22:26:55 +0000 (23:26 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 22 Sep 2012 15:50:47 +0000 (16:50 +0100)
server/client.js
server/irc-connection.js
server/web.js

index f5c124a5b2bf41588ae9ce789fe55deacb9de652..5191fb95ca4c5e55b345829f462ed0c4f970ec85 100755 (executable)
@@ -1,6 +1,7 @@
 var util             = require('util'),
     events           = require('events'),
-    IRCConnection    = require('./irc-connection.js').IRCConnection;
+    _                = require('underscore'),
+    IRCConnection    = require('./irc-connection.js').IRCConnection,
     IRCCommands      = require('./irc-commands.js'),
     ClientCommandset = require('./client-commands.js').ClientCommandset;
 
index 2f3b457fcb45db8fa5dcfb93282230b3e626f177..d6a0a0e0addf73dd92e76c29f8ede2135be5f782 100755 (executable)
@@ -55,7 +55,7 @@ IRCConnection.prototype.end = function (data, callback) {
     console.log('S<--', data);
     console.log('Closing docket');
     end.call(this, data + '\r\n', 'utf-8', callback);
-}
+};
 
 var write = function (data, encoding, callback) {
     this.socket.write(data, encoding, callback);
index 6751e00dfe8c06a1dd57cce8f6e8235fab2bea85..3f14daea06dd1f9a5c355a689cebb7ba57479c7e 100755 (executable)
@@ -6,7 +6,7 @@ var ws          = require('socket.io'),
     fs          = require('fs'),
     dns         = require('dns'),
     _           = require('underscore'),
-    Client   = require('./client.js').Client;
+    Client   = require('./client.js').Client,
     HTTPHandler = require('./http-handler.js').HTTPHandler;
 
 var WebListener = function (config, transports) {