license added to build.js
[KiwiIRC.git] / server / ee.js
CommitLineData
2abb4615
D
1var util = require('util'),
2 EventEmitter2 = require('eventemitter2').EventEmitter2;
3
4
5var EE = function() {
6 EventEmitter2.apply(this, arguments);
7};
8util.inherits(EE, EventEmitter2);
9
10
11EE.prototype.emit = function() {
12 arguments[0] = arguments[0].toLowerCase();
13 EventEmitter2.prototype.emit.apply(this, arguments);
14};
15
16
17EE.prototype.on = function() {
18 arguments[0] = arguments[0].toLowerCase();
19 EventEmitter2.prototype.on.apply(this, arguments);
20};
21
22
23module.exports = EE;