From: Darren Date: Sat, 28 Sep 2013 13:18:09 +0000 (+0100) Subject: New IRC connection - don't send redundant con_num to client on connection error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b5ad2ed25cce08ba7979385abff23afb5373e392;p=KiwiIRC.git New IRC connection - don't send redundant con_num to client on connection error --- diff --git a/server/irc/state.js b/server/irc/state.js index f8b7ca9..7a0d385 100755 --- a/server/irc/state.js +++ b/server/irc/state.js @@ -66,7 +66,7 @@ State.prototype.connect = function (hostname, port, ssl, nick, user, options, ca con.on('error', function IrcConnectionError(err) { console.log('irc_connection error (' + hostname + '):', err); - return callback(err.code, {server: con_num, error: err}); + return callback(err.code); }); con.on('close', function IrcConnectionClose() {