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