From 0ea112f0b46b91d0e02ded63257588fc2d8c47f9 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Fri, 21 Sep 2012 23:26:55 +0100 Subject: [PATCH] fix crashbug caused by using semicolons instead of commas and/or lack of require('underscore') --- server/client.js | 3 ++- server/irc-connection.js | 2 +- server/web.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/client.js b/server/client.js index f5c124a..5191fb9 100755 --- a/server/client.js +++ b/server/client.js @@ -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; diff --git a/server/irc-connection.js b/server/irc-connection.js index 2f3b457..d6a0a0e 100755 --- a/server/irc-connection.js +++ b/server/irc-connection.js @@ -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); diff --git a/server/web.js b/server/web.js index 6751e00..3f14dae 100755 --- a/server/web.js +++ b/server/web.js @@ -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) { -- 2.25.1