Fix filter leak

This commit is contained in:
calzoneman 2014-02-16 21:40:26 -06:00
parent e5333056e1
commit 20e00af18d

View file

@ -104,7 +104,11 @@ function Channel(name) {
motd: "", // Raw MOTD text
html: "" // Filtered MOTD text (XSS removed; \n replaced by <br>)
};
self.filters = DEFAULT_FILTERS;
self.filters = [];
DEFAULT_FILTERS.forEach(function (f) {
var filt = new Filter(f.name, f.source, f.flags, f.replace);
self.updateFilter(filt);
});
self.emotes = [];
self.logger = new Logger.Logger(path.join(__dirname, "../chanlogs",
self.uniqueName + ".log"));