1 var util
= require('util'),
2 events
= require('events'),
8 util
.inherits(Rehash
, events
.EventEmitter
);
10 Rehash
.prototype.rehashAll = function () {
13 './clientcommands.js',
14 //'./configuration.js',
17 './irc/connection.js',
21 _
.each(files
, function (file
) {
22 delete require
.cache
[require
.resolve(file
)];
26 this.emit('rehashed', [files
]);
31 module
.exports
= new Rehash();