From d598675576d0d4179f5566f14189aa397678740d Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Tue, 20 May 2014 22:42:51 -0700 Subject: [PATCH] Send deleteChatFilter packet --- lib/channel/filters.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/channel/filters.js b/lib/channel/filters.js index 38f15964..25742cd9 100644 --- a/lib/channel/filters.js +++ b/lib/channel/filters.js @@ -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); };