Fix filter leak
This commit is contained in:
parent
e5333056e1
commit
20e00af18d
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue