Remove process.EventEmitter usage for Node 7.x

process.EventEmitter has been deprecated and removed from Node.
This commit is contained in:
John Chadwick
2016-12-14 15:57:42 -05:00
committed by Damien Arrachequesne
parent d25c5484c3
commit 9ad1fd2771
9 changed files with 9 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ var Client = irc.Client = function(host, port) {
this.user = null;
this.real = null;
}
sys.inherits(Client, process.EventEmitter);
sys.inherits(Client, require('events'));
Client.prototype.connect = function(nick, user, real) {
var connection = tcp.createConnection(this.port, this.host);