Don't auto connect an IRC connection in the constructor
[KiwiIRC.git] / server / irc / connection.js
index 2c9ad82949dcb08ffb236f1cb886434b61f913f7..df9b5b9b1ddec91919554a6659293cea8c21f70f 100644 (file)
@@ -92,12 +92,6 @@ var IrcConnection = function (hostname, port, ssl, nick, user, pass, state) {
     this.held_data = '';
 
     this.applyIrcEvents();
-
-    // Call any modules before making the connection
-    global.modules.emit('irc connecting', {connection: this})
-        .done(function () {
-            that.connect();
-        });
 };
 util.inherits(IrcConnection, EE);