New IRC connection - don't send redundant con_num to client on connection error
authorDarren <darren@darrenwhitlen.com>
Sat, 28 Sep 2013 13:18:09 +0000 (14:18 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 28 Sep 2013 13:18:09 +0000 (14:18 +0100)
server/irc/state.js

index f8b7ca9bd70943f8eae1ecaa63af61c435a5ba93..7a0d3857fd8915b646321c2155a800f0f3ea562e 100755 (executable)
@@ -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() {