\r
\r
// Trigger the connection specific events (used by Network objects)\r
- if (typeof data.server !== 'undefined') {\r
- that.trigger('connection:' + data.server.toString(), {\r
+ if (typeof data.connection_id !== 'undefined') {\r
+ that.trigger('connection:' + data.connection_id.toString(), {\r
event_name: command,\r
event_data: data\r
});\r
* Send an event to the client
*/
IrcConnection.prototype.clientEvent = function (event_name, data, callback) {
- data.server = this.con_num;
+ data.connection_id = this.con_num;
this.state.sendIrcCommand(event_name, data, callback);
};