Skip to content

Commit

Permalink
Merge pull request #281 from martynsmith/jirwin/use-proper-eventemitter
Browse files Browse the repository at this point in the history
fix(irc.js): Use the proper EventEmitter class.
  • Loading branch information
Chris Nehren committed Jan 9, 2015
2 parents b175244 + 2ae3ce9 commit 0fd26a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports.Client = Client;
var net = require('net');
var tls = require('tls');
var util = require('util');
var EventEmitter = require('events').EventEmitter;

var colors = require('./colors');
exports.colors = colors;
Expand Down Expand Up @@ -598,10 +599,10 @@ function Client(server, nick, opt) {
});
});

process.EventEmitter.call(this);
EventEmitter.call(this);
}

util.inherits(Client, process.EventEmitter);
util.inherits(Client, EventEmitter);

Client.prototype.conn = null;
Client.prototype.prefixForMode = {};
Expand Down

0 comments on commit 0fd26a7

Please sign in to comment.