mirror of https://github.com/calzoneman/sync.git
Extend blacklist to PMs
This commit is contained in:
parent
575b762ba1
commit
318a924b6d
|
@ -162,6 +162,15 @@ ChatModule.prototype.handlePm = function (user, data) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.msg.match(Config.get("link-domain-blacklist-regex"))) {
|
||||||
|
this.channel.logger.log(user.displayip + " (" + user.getName() + ") was kicked for " +
|
||||||
|
"blacklisted domain");
|
||||||
|
user.kick();
|
||||||
|
this.sendModMessage(user.getName() + " was kicked: blacklisted domain in " +
|
||||||
|
"private message", 2);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var reallyTo = data.to;
|
var reallyTo = data.to;
|
||||||
data.to = data.to.toLowerCase();
|
data.to = data.to.toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue