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);
that.irc_connections[con_num] = null;
global.servers.removeConnection(this);
});
+
+ // Call any modules before making the connection
+ global.modules.emit('irc connecting', {connection: con})
+ .done(function () {
+ con.connect();
+ });
};
State.prototype.sendIrcCommand = function () {