mirror of https://github.com/calzoneman/sync.git
Send deleteChatFilter packet
This commit is contained in:
parent
da6eadf33b
commit
d598675576
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue