From: Jack Allnutt Date: Fri, 21 Sep 2012 22:26:55 +0000 (+0100) Subject: fix crashbug caused by using semicolons instead of commas and/or lack of require... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ea112f0b46b91d0e02ded63257588fc2d8c47f9;p=KiwiIRC.git fix crashbug caused by using semicolons instead of commas and/or lack of require('underscore') --- 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) {