Send deleteChatFilter packet

This commit is contained in:
Calvin Montgomery 2014-05-20 22:42:51 -07:00
parent da6eadf33b
commit d598675576
1 changed files with 6 additions and 0 deletions

View File

@ -250,6 +250,12 @@ ChatFilterModule.prototype.handleRemoveFilter = function (user, data) {
}
this.filters.removeFilter(data);
var chan = this.channel;
chan.users.forEach(function (u) {
if (chan.modules.permissions.canEditFilters(u)) {
u.socket.emit("deleteChatFilter", data);
}
});
this.channel.logger.log("[mod] " + user.getName() + " removed filter: " + data.name);
};