Remove IP leak from ban log message
This commit is contained in:
parent
c255133a2b
commit
b82583a79c
|
@ -337,10 +337,11 @@ KickBanModule.prototype.banIP = function (actor, ip, name, reason, cb) {
|
||||||
|
|
||||||
return Q.nfcall(db.channels.ban, chan.name, ip, name, reason, actor.getName());
|
return Q.nfcall(db.channels.ban, chan.name, ip, name, reason, actor.getName());
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
chan.logger.log("[mod] " + actor.getName() + " banned " + ip + " (" + name + ")");
|
var cloaked = util.cloakIP(ip);
|
||||||
|
chan.logger.log("[mod] " + actor.getName() + " banned " + cloaked + " (" + name + ")");
|
||||||
if (chan.modules.chat) {
|
if (chan.modules.chat) {
|
||||||
chan.modules.chat.sendModMessage(actor.getName() + " banned " +
|
chan.modules.chat.sendModMessage(actor.getName() + " banned " +
|
||||||
util.cloakIP(ip) + " (" + name + ")",
|
cloaked + " (" + name + ")",
|
||||||
chan.modules.permissions.permissions.ban);
|
chan.modules.permissions.permissions.ban);
|
||||||
}
|
}
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
|
Loading…
Reference in a new issue